2 Answers
- Newest
- Most votes
- Most comments
0
Hello.
How about starting EC2 in the subnet associated with Lambda and checking if it can be accessed from EC2?
If you cannot access from EC2, it is possible that the IP address used by NAT Gateway is blocked at the connection destination.
It seems possible to implement traceroute in Node.js as well.
https://medium.com/@frnkst_/building-traceroute-in-javascript-eea519385af1
0
Yes, I tried to do that, but from ec2 I was able to connect. I did one more test. I deployed in a different environment. I use a different NAT gateway there. And the result is the same - timeout
answered 20 days ago
Relevant content
- asked a year ago
- asked a year ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
https://repost.aws/questions/QUuZk4GSIdQcqvKrsiay82Hw/ping-url-or-dns-name-from-lambda-function The traceroute solution will not work
Is the code you're using in EC2 and Lambda the same? Also, will it be blocked if I access it without connecting to the VPC (not using NAT Gateway)? Also, what kind of error are you getting?