Interview Prep/Networking/NAT, Firewalls & VPN

Why is NAT gateway cost a common surprise and how do you reduce it?

IntermediateConceptNAT, Firewalls & VPN
Answer

You pay an hourly fee plus a per-GB processing fee on all traffic through it, and also normal data transfer. Pulling container images, S3 or DynamoDB traffic through NAT adds up quickly.

Reduce with gateway VPC endpoints for S3 and DynamoDB (free), interface endpoints for ECR, STS, CloudWatch and similar, same-AZ NAT per subnet, and caching images in a private registry.

All Networking questions Roadmap: Networking for DevOps

More on NAT, Firewalls & VPN