Access Denied while sending email from AWS SES in Lambda function

前端 未结 6 2022
暗喜
暗喜 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 15:00

    For Serverless Components yaml:

    ...
    inputs:
      name: ${name}-${stage}
      region: ...
      service: lambda.amazonaws.com
      policy:
        - Effect: Allow
          Action:
            - ses:SendEmail
            - ses:SendRawEmail
          Resource: '*'
    

提交回复
热议问题