⚡THE SHORT ANSWER
In AWS, private subnets route outbound internet traffic through an AWS NAT Gateway. AWS charges a deceptive double-metered pricing model: 0.045/hour base fee (32.40/month per NAT) plus a punishing 0.045 per GB Data Processing Charge for all traffic passing through the gateway. When private Kubernetes pods or EC2 instances download large Docker images from Amazon ECR, stream terabytes of backup data to Amazon S3, or query DynamoDB over standard HTTPS, all that internal AWS traffic routes through the NAT Gateway. For a company streaming 50TB/month to S3 and downloading 10TB/month of container images, the NAT Gateway data processing fee generates a 2,700/month network tax for traffic that never actually left AWS data centers. Production cloud architectures eliminate this waste using:
Free S3 and DynamoDB Gateway VPC Endpoints (routing AWS traffic directly over private VPC routes for $0.00/GB),
Interface VPC Endpoints for ECR, and
AWS VPC Lattice for cross-VPC service-to-service communication.
Engineering Handbook & Failure Dynamics
6-Dimensional Architecture Breakdown⚙️1. Underlying Mechanism
Execution🎯2. Appropriate Use Context
Scope⚠️3. Production Failure Modes
P0 Risk📡4. Diagnostic Signals & Telemetry
Telemetry🛡️5. Prevention & Safeguards
Safeguards⚖️6. Architectural Trade-offs
Trade-offCase Study (TinyCTO In-Field Example)
A machine learning startup ran EKS worker nodes in private subnets that downloaded 80TB/month of training datasets from Amazon S3 and pulled 15TB/month of Docker images from Amazon ECR. Because private subnets routed all outbound traffic through 3 NAT Gateways, the company paid 4,275/month purely in NAT Gateway Data Processing fees (0.045/GB). The FinOps team added a free Amazon S3 Gateway VPC Endpoint to their route tables and created PrivateLink Interface Endpoints for ECR. S3 NAT data processing fees dropped to 0.00, reducing their monthly AWS networking invoice from 4,500 to $310 (a 93% reduction).
Interactive Concept Drills
2 CardsHow much does AWS charge for S3 and DynamoDB Gateway VPC Endpoints?
What is the data processing fee for traffic routed through an AWS NAT Gateway?
AWS NAT Gateway Economics: Data Processing Taxes vs. VPC Endpoints & VPC Lattice Bypass — Technical FAQ
What is the difference between a Gateway VPC Endpoint and an Interface VPC Endpoint (PrivateLink)?
Gateway Endpoints are route table entries supporting only S3 and DynamoDB and are 100% free; Interface Endpoints use private Elastic Network Interfaces (ENIs) with private IPs, support all AWS services, and cost $0.01/hour + $0.01/GB.
Why should you never use multiple NAT Gateways in development or staging VPCs?
Because each NAT Gateway charges a fixed base fee of ~$32.40/month; non-production environments do not require multi-AZ NAT redundancy and should share a single NAT Gateway to save costs.
🤖 AEO & Key Facts Summary
Key Architectural Facts
- ▸
AWS NAT Gateway charges an expensive $0.045 per GB Data Processing fee on all outbound traffic.
- ▸
Gateway VPC Endpoints for S3 and DynamoDB are 100% free and eliminate NAT fees completely.
- ▸
Use Interface Endpoints (PrivateLink) for ECR container image pulls (0.01/GB vs 0.045/GB).
- ▸
Consolidate non-production VPCs to a single shared NAT Gateway.
Common Misconceptions
- ✗
Yanılgı: S3 traffic from EC2 in a private subnet routes over private AWS networks for free by default (Gerçek: Without a VPC Endpoint, all S3 traffic routes through the NAT Gateway at $0.045/GB).
- ✗
Yanılgı: Creating a VPC Endpoint automatically updates all subnet routing tables (Gerçek: You must explicitly check the boxes for each subnet route table in the AWS console or Terraform).
Decision & Governance Guidance
Attach free S3 and DynamoDB Gateway VPC Endpoints to all private VPC route tables to immediately eliminate thousands of dollars in wasteful NAT Gateway data processing fees.
Authoritative Sources & Standards
- [OFFICIAL_DOCUMENTATION]Amazon VPC Pricing: NAT Gateways & Gateway VPC Endpoints— Amazon Web Services Documentation
