The NAT gateway line item nobody budgeted for
Data processing charges on NAT gateways routinely become a top-five AWS line item. Here is how to find yours, and the three fixes that actually move the number.
- FinOps
- AWS
- Networking
Almost every AWS cost assessment we run turns up the same surprise. The customer expects compute and storage at the top of the bill. Somewhere in the top five, unbudgeted and usually unexplained, sits NAT gateway data processing.
It is easy to see why it hides. A NAT gateway costs a few cents an hour to run, which looks trivial when you provision it. The charge that hurts is the per-gigabyte processing fee on everything that passes through it, and nothing in the console connects that number to the workload generating it.
Where the traffic actually comes from
When we break the traffic down, it is nearly always one of four things:
- Container image pulls. Every pod start in a private subnet pulls from a registry through the
NAT gateway. A cluster that scales aggressively, or that has
imagePullPolicy: Alwayson a large image, can move terabytes a month doing nothing but fetching layers it already had. - S3 and DynamoDB access without a gateway endpoint. Traffic to these services from a private subnet takes the NAT path unless a gateway VPC endpoint exists. The endpoint is free. The NAT route is not.
- Cross-AZ chatter that leaves the VPC and comes back. Usually a service addressing a public endpoint of something that lives next door.
- Log and metric shipping. An observability agent forwarding to a SaaS backend is a steady, round-the-clock egress stream that nobody thinks of as traffic.
Finding it
The Cost and Usage Report has the detail the console does not. The usage types you want are
NatGateway-Bytes for processing and NatGateway-Hours for the fixed cost:
SELECT
line_item_usage_account_id AS account,
line_item_availability_zone AS az,
SUM(line_item_unblended_cost) AS cost,
SUM(line_item_usage_amount) AS gb
FROM cur
WHERE line_item_usage_type LIKE '%NatGateway-Bytes%'
AND line_item_usage_start_date >= DATE '2026-08-01'
GROUP BY 1, 2
ORDER BY cost DESC;
That tells you which account and which availability zone. To get from there to which workload, turn on VPC flow logs for the NAT gateway's ENI for a week and aggregate by source address. A week is enough, and it is cheaper than guessing.
The three fixes worth doing
Gateway endpoints for S3 and DynamoDB. This is free, takes one Terraform resource per route table, and carries no meaningful risk. If you do nothing else, do this. On a data-heavy estate it frequently removes a third of the processed bytes on its own.
Interface endpoints for the chatty AWS APIs. ECR, CloudWatch Logs, STS, Secrets Manager and SSM are the usual candidates. These cost per hour per AZ plus a much lower per-GB rate, so they pay for themselves above a volume threshold rather than automatically. Model it before you roll them out everywhere — for a small estate, a handful of interface endpoints can cost more than the NAT traffic they displace.
Pull-through cache for container images. An ECR pull-through cache keeps upstream images inside your account, so scaling events stop crossing the NAT boundary. On clusters with heavy autoscaling this is often the single biggest reduction.
What we do not recommend
Replacing NAT gateways with self-managed NAT instances. Yes, the per-GB charge disappears. You have now taken on an availability-critical piece of network infrastructure that needs patching, monitoring, failover and on-call coverage. We have seen the operational cost exceed the saving inside a year, and we have seen the failover not work during the incident that needed it.
Fix the traffic, not the meter.
The pattern underneath
This is what most cloud cost work looks like in practice. There is rarely one dramatic waste item. There is a charge that is invisible at design time, grows quietly with usage, and has no owner because it does not map to a team. Allocation first, then the fix — in that order, or the saving comes back six months later.