both projects are nearly the same code base (Gatsby + Netlify) and both have a similar function to send emails using SES. Same AWS credentials even. And the code to send emails via SES is the same.
However, on one site everything works as expected, on the other site the Netlify functions return:
AccessDenied: User `arn:aws:sts::XXXXXXXXX:assumed-role/aws-lambda-execute/YYYYY' is not authorized to perform `ses:SendEmail' on resource `arn:aws:ses:eu-west-1:XXXXXXX:identity/EMAIL@TLD.COM"
Is it possible that the Lambda function in the background for sending emails is missing
ses:SendEmail as permission?
The code works locally (same credentials) as well, so it’s really something related to the hosting.
Thanks in advance!