- 最新
- 投票最多
- 评论最多
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.
相关内容
- 已提问 2 个月前
- AWS 官方已更新 3 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前