- Newest
- Most votes
- Most comments
Hello.
Will your Lambda connect to resources (RDS or EC2) within your VPC?
In that case, you need to create a NAT Gateway or Amazon SNS VPC endpoint in the VPC linked to Lambda and configure it to communicate with the Amazon SNS service.
When creating a NAT gateway, add a route for the NAT gateway to the route table of the subnet associated with Lambda.
https://repost.aws/knowledge-center/internet-access-lambda-function
https://docs.aws.amazon.com/sns/latest/dg/sns-vpc-create-endpoint.html
I did not know that this was a requirement. My Lambda can publish to the SNS topic if it is the only service used. Is there a reason why that works without the end point?
Thanks @Riku for your direction. I added the SNS VPC Endpoint and my SNS publish action is working again.
Relevant content
- asked 2 years ago
- asked 5 years ago
- asked 3 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago