liveBook · Manning

NAT gateway

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A NAT gateway is a managed network gateway that enables resources in a private network to initiate connections to external networks through address translation.

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

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Explains placement, routing, network ACLs, cost, throughput, and availability-zone limits, but does not detail high-availability design.
Examples
Uses a three-subnet web application, CloudFormation resources, HTTP/HTTPS ACL rules, and a private backend default route.
What it assumes
Assumes basic VPC, subnet, route-table, internet-gateway, CIDR, and network-ACL concepts while introducing their concrete arrangement.
What you can do after
Configure a private backend’s outbound internet path with AWS VPC routing and CloudFormation.
How it connects
Connects private subnets with public subnets, internet gateways, VPCs, network ACLs, and VPC endpoints.

Also explained in

Compare how 2 books explain NAT gateway →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.