Back to Architecture Library
Networking & Traffic
Internet Gateway vs NAT
How resources connect to the internet.
Misconceptions
- •IGW and NAT are the same thing
- •NAT is used for public instances
Trade-offs
- •Bidirectional Access (IGW) vs. Outbound Only (NAT)
- •Cost (NAT is usually more expensive)
The Mental Model
An Internet Gateway (IGW) allows communication between your VPC and the internet. A NAT Gateway allows resources in a private subnet to connect to the internet while preventing the internet from initiating a connection with them.
Interactive Simulation
VPC Scope (10.0.0.0/16)
Instance
NAT Gateway
NAT Gateway: One-way outbound traffic. Private instances can download updates but remain hidden from the public internet.
Architecture Primitives v1.0
Architect's Tip
When scaling for internet gateway vs nat, always consider the impact on downstream dependencies like databases and message queues.