A NAT gateway is a managed AWS gateway that translates traffic from resources in private subnets. It lets those resources initiate internet connections without giving the internet a route into the private subnet. Internet traffic appears to come from the NAT gateway’s public IP address. section 5.5.5 section 5.6
Place the gateway in a public subnet and connect it to private workloads through routing:
- Allow the required HTTP, HTTPS, and ephemeral-port traffic through the NAT subnet’s network ACL. section 5.5.5
Private backend with internet access
A web application can keep backend servers in a private 10.0.2.0/24 subnet while placing the NAT gateway in a public 10.0.0.0/24 subnet. The backend can reach external services for outbound work, but internet clients reach it only through the public proxy subnet. section 5.5 section 5.5.5

