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.
More on NAT, Firewalls & VPN
What is NAT and why is it used?BeginnerWhat is the difference between SNAT, DNAT and PAT?AdvancedHow does an AWS NAT gateway work, and what are its limits?AdvancedWhat is conntrack and what happens when its table fills up?AdvancedWhat is the difference between a stateful and a stateless firewall?BeginnerWhat is a security group and how does it differ from a network ACL?Beginner