Access Denied while sending email from AWS SES in Lambda function

前端 未结 6 2016
暗喜
暗喜 2021-02-18 14:24

I am trying to send an email using Amazon SES in AWS Lambda function, For this i am facing the following error.

AccessDenied: User arn:aws:sts::XXXX

6条回答
  •  温柔的废话
    2021-02-18 14:59

    IAM Policy fixed the issue. Policy summary will show if there are any warnings i.e. resource does not exist etc.

    JSON needs following

           {
                "Sid": "VisualEditor1",
                "Effect": "Allow",
                "Action": [
                    "ses:SendEmail",
                    "ses:SendRawEmail"
                ],
                "Resource": "*"
            }
    

提交回复
热议问题