I'm learning AWS and trying to connect the pieces. I think a VPC is an isolated network with public and private subnets, an internet gateway connects it to the internet, an ALB sends requests to servers, and EC2 or ECS can run the application.
What am I missing, especially about how the internet gateway works?
Vanni:
The gateway handles the public IPv4 address mapping for an instance. The instance itself still uses its private IPv4 address inside the VPC.