This error occurs when an AWS service such as a Lambda function is not authorized to send an email using Amazon SES.
To resolve the error, you will need to attach a policy to the IAM role to allow the AWS resource to execute the ses:SendEmail
action.
For example, if you wish to provide a Lambda function the permission to send an email using SES, you would have to create and attach an inline policy for the function's IAM role that allows the ses:SendEmail
action. The inline policy is shown below.
1 2 3 4 5 6 7 8 9 10 11 12 13
{ "Version": "2012-10-17", "Statement" : [ { "Sid": "Inline Policy for SES Send Email", "Effect": "Allow", "Resource" : "*", "Actions":[ "ses:SendEmail" ] } ] }
The inline policy shown above will ensure that the AWS service is allowed to execute the SendEmail
action on an Amazon SES resource and will resolve the permission error.
View all errors
Send up to 10,000 notifications every month, for free.
Get started for free
Send up to 10,000 notifications every month, for free.
Get started for free
© 2024 Courier. All rights reserved.