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
arn:aws:sts::XXXX
For Serverless Components yaml:
... inputs: name: ${name}-${stage} region: ... service: lambda.amazonaws.com policy: - Effect: Allow Action: - ses:SendEmail - ses:SendRawEmail Resource: '*'