Networking

Internet Gateway and NAT Gateway

An internet gateway enables internet routes for public resources; NAT lets private IPv4 instances initiate outbound internet connections.

How it works

An Internet Gateway attaches to a VPC and enables internet connectivity for appropriately routed resources, including instances with public IPv4 addresses. A public NAT gateway in a public subnet lets private subnet instances initiate outbound IPv4 connections through an Internet Gateway without accepting unsolicited inbound internet connections. Routes and security controls must also be configured correctly.

When to use it

Choose it when the requirement is public inbound reachability versus private instances needing outbound updates.

Real-world example

A team places application servers in a private subnet and creates a public NAT gateway in a public subnet. It routes private subnet internet traffic to the NAT gateway so the servers can download updates without public IPv4 addresses.

Common pitfall

A public NAT gateway needs an Elastic IP and a route through an Internet Gateway for internet access. A private NAT gateway supports private connectivity and cannot provide internet access through an Internet Gateway.

Often confused with

Compare its service boundary with Security Groups and Network ACLs; choose from the workload requirement.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning