Let's go back to the homepage
Again, click on "Services" at the top of the screen and search for "IAM".
Please click IAM.
You are now in the IAM console. IAM can be thought of as the bookkeeper of which permissions needed to interface with other services are assigned to the roles you've created.
Let's add the SNS permission to our lambda_basic_execution role.
- Under "IAM Resources," select Roles. You should be on a screen that displays your lamba_basic_execution role. Please click on this role.
- Click on the blue "Attach policy" button. Search for SNS.
- Select the checkmark box for AmazonSNSFullAccess and click "Attach policy" at the bottom of your screen.
- Awesome, we've just told IAM to authorize our Lambda role to interface with SNS! We can now utilize SNS to deliver SMS messages.
Let's go back to Lambda and set up the full SNS script 😍