NAT Gateway Bandwidth and Throttling

Identify NAT Gateway connection limits and eliminate unnecessary NAT costs with VPC endpoints.

Overview

Overview

NAT Gateway lets private subnet resources (EC2 instances, ECS tasks, Lambda functions) open outbound internet connections while blocking inbound ones. It has specific limits, and when they are exceeded the connectivity failures look like a general network outage.

Key concepts

  • ErrorPortAllocation
  • VPC Gateway Endpoint
  • VPC Interface Endpoint (PrivateLink)
  • NAT Gateway Connection Limits
  • NAT Gateway Data Processing Cost

Interview questions

  • A batch job that downloads large files from S3 via ECS tasks in a private subnet is generating a $3,000 monthly NAT Gateway bill. How do you fix this?

Sign up free to read the full topic

More Troubleshooting topics

Start free on Cariara · Coding problems · System design studio