- Newest
- Most votes
- Most comments
Hi,
Is that EC2 instance deployed in different VPC than lambda ? If so, please make sure there is route to the destination CIDR routing via VPC peering or TGW. Since you get timeout error, it's possible that routing is misconfigured.
If EC2 instance is deployed in the same VPC/subnets as lambda, then routing shouldn't be a problem. Here you need to make sure NACL's are configured properly to allow-list Lambda traffic.
Another option to test this is by deploying a test instance in the same subnet as your lambda and run VPC reachability analyzer ? It will help to determine where the traffic is getting stopped and identify any issues
Thank you.
When you enable VPC for Lambda you also need specify in which subnet it will be deployed. Could it be that there are no routes between the subnet where Lambda is deployed and subnet where is EC2?
Have you defined proper routes in the routing table in Subnets where Lambda function is deployed?
Relevant content
- asked 9 months ago
- Accepted Answerasked 8 months ago
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago