Interview Prep/AWS/VPC and Connectivity

Private instances cannot reach the internet; `curl: (28) Connection timed out after 10000 milliseconds`.

IntermediateTroubleshootingVPC and Connectivity
Answer

Likely causes → NAT gateway missing, route absent, or NAT in a subnet without an IGW route.

Diagnose →

aws ec2 describe-nat-gateways --filter Name=vpc-id,Values=vpc-0abc
aws ec2 describe-route-tables --route-table-ids rtb-0abc
aws ec2 describe-subnets --subnet-ids <nat-subnet>
curl -v https://example.com

Fix →

  1. Create the NAT in a public subnet
  2. Fix routes
  3. Check NACL and SG egress

Prevent → Test egress in IaC pipelines.

aws All AWS questions Roadmap: AWS core services

More on VPC and Connectivity