3 Answers
- Newest
- Most votes
- Most comments
0
Hello.
If Lambda has not stopped execution due to an error, you should be able to see some changes in the Amazon SES CloudWatch metrics.
Also, looking at the logs, it appears that the connection to the endpoint is normal.
Is it possible to send it using something like NAT Gateway instead of VPC endpoint?
0
you may want to verify the following possibilities that might be causing email sending failure.
- https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-policy-examples.html Verify that the SES VPC endpoint policy
- Lambda permissions policy, and attach to it the right IAM role. { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ses:SendEmail", "ses:SendRawEmail" ], "Resource": "*" } ] }
- even though I'm using 465, 587 port? Do I still need port 25?
- I've checked ses permission and still not sending the email.
- is it possible though? for lambda in private subnet, to send email through ses vcpoint.
0
Hi,
You may be interested by https://stackoverflow.com/questions/63276192/why-does-my-lambda-function-timeout-connecting-to-ses-vpc-endpoint
See answer #1: it explains how to get a private SES endpoint to work with a Lambda
Best,
Didier
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Sending email is not that frequent job so I would prefer to use ses vpc endpoint.
For testing purposes, can I launch EC2 into the same subnet as Lambda and see if I can send email via the VPC endpoint? If you can send it now, there may be some problem on the Lambda side.