My goal is to create an EC2 instance in a private subnet on a VPC that I will be able to ping from external internet.
So far, I have:
- created an elastic IP
- created a VPC with one public subnet and one private subnet
- created a NAT Gateway on the public subnet and set its public IP to the elastic IP
- created an EC2 instance in the VPC on the private subnet
- created a security group for the EC2 instance which allows all ICMP traffic
When I try to ping the elastic IP address, then pings time out.
What do I need to be able to do to ping the EC2 instance on the private subnet?