NAT gateway
A managed AWS service in a public subnet that lets resources in private subnets start outbound internet connections.
A forgotten NAT gateway keeps billing every hour and for every gigabyte it processes.
In more detail
Private subnets send their default route to the NAT gateway, which sends traffic on through the internet gateway. Resources behind it can reach out, for example to download updates, but connections cannot be started to them from the internet. It is billed per hour and per gigabyte processed, so put one in each availability zone only if resilience needs it.
Related terms
- NAT — Network address translation: rewriting a packet’s source address so private machines can reach outside networks through a shared public address.
- private subnet — A subnet with no route to an internet gateway, so nothing on the internet can start a connection to resources inside it.
- Elastic IP address — A fixed public IPv4 address you allocate to your account and attach to a resource such as a NAT gateway.
- data transfer — Moving data between zones, regions or out to the internet, which AWS usually charges for by the gigabyte.
- internet gateway — The VPC component that connects public subnets to the internet in both directions.
- centralized egress — A network design where all outbound internet traffic from many VPCs is routed through one shared inspection point.
Taught in
- Which Zone, Which Journey? — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- The Public Subnet That Was Not — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Confusable Services Sprint: One Clue Each — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- The Morning An Availability Zone Went Dark — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- The Network As A Control: CIDR, Routes, ACLs And Security Groups — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Private Paths: VPC Endpoints And PrivateLink — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Compute Performance: Families, Placement And Lambda Memory — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Network Performance: Peering, Transit Gateway And The Edge — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- The Performance Clinic: Five Slow Systems, Five Fixes — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Database Cost: Serverless, Capacity Modes And Reservations — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Network Cost: NAT Gateways, Zones And Data Out — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Long-Stem Clinic: The Phrase That Decides — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Subnets: Public and Private — Cloud Infrastructure & Hyperscaler Architecture
- Network Address Translation — Cloud Infrastructure & Hyperscaler Architecture
- Security Landing Zones & Centralized Egress Inspection — Cloud Security & DevSecOps Engineering
- Cloud Network Isolation: VPC Peering & PrivateLink — Cloud Security & DevSecOps Engineering
- Releasing The Real Cloud Artifact — Infrastructure as Code with Terraform