While working with a private instance, we face various issues in terms of an EC2 instance connecting to the internet or any other instance in the subnet.
Internet not accessible in the private subnet instance (NAT Gateway)
How to do it...
- The first troubleshooting step starts with pinging the destination (any other host or internet).
Make sure that you test the destination from another server or your own computer because the destination host/website should have ICMP enabled.
- Verify that NAT Gateway and EC2 are attached to the desired subnet.
- Ensure that NAT Gateway has been created in a public subnet.
Public subnet should have a public Route Table having a default route pointing to the Internet Gateway.
- Check that the...