What are the main drivers of AWS network cost and how do you control each?
IntermediateProductionPerformance, Cost & Scale
Answer
NAT gateway processing (0.045 USD/GB): use endpoints. Data transfer out to internet (about 0.09 USD/GB): use CloudFront (cheaper egress and caching). Cross-AZ and cross-region transfer: locality. Public IPv4 charges: remove or use IPv6. Load balancer LCUs and idle LBs: consolidate, delete unused. TGW attachments and data: fewer hops.
Tag by workload and review Cost Explorer monthly; network cost is invisible until the bill arrives.
More on Performance, Cost & Scale
How do you reduce cross-AZ data transfer costs?IntermediateHow do you find what is driving a surprise NAT gateway bill?AdvancedHow do you tune Linux network settings for a high-traffic server?IntermediateHow do you reach 100k+ concurrent connections on one proxy?AdvancedHow do you choose instance types for network-heavy workloads on AWS?IntermediateWhat is a placement group and when does it matter for networking?Intermediate