Can I send information to an EC2 with a public IP, while the EC2 is in a private subnet?
I’m new to networking,
but I was wondering what happens in the following scenario: I have a VPC with an Internet Gateway IGW. Inside the IGW I have a private subnet, meaning that that subnet have a route table that is not connected to the IGW.
Inside this subnet I have an EC2 with a public IP, and security group that allows all inbound and outbound traffic.
From my understanding, a route table defines how traffic FROM subnet is directed (not TO subnet).