AWS Builder Center
The $1,400 NAT Gateway Bill That Taught Us Everything About VPC Design

The $1,400 NAT Gateway Bill That Taught Us Everything About VPC Design

Our AWS bill quietly doubled in one month — and the culprit wasn't EC2 or S3. Here's how we traced the leak to NAT Gateway data transfer, fixed it with VPC endpoints, and cut that charge by 90%.

The $1,400 NAT Gateway Bill That Taught Us Everything About VPC Design

It started the way every cloud horror story starts: a routine Tuesday, a cup of coffee, and a Cost Explorer graph that made me put the coffee down.
**Our AWS bill had doubled.**No new product launch. No traffic spike. No new services. Just… money, disappearing.
[INSERT SCREENSHOT 1: AWS Cost Explorer showing the month-over-month jump — make sure the spike is visibly obvious]

Step 1: Finding the culprit

I grouped costs by service in Cost Explorer and the answer jumped out immediately:
Service
Last month
This month
EC2
$610
$640
S3
$180
$195
NAT Gateway
$90
$1,410⚠️
NAT Gateway charges you two ways: an hourly fee (predictable) andper-GB of data processed(not predictable). Ours had processed over 900 GB — mostly traffic that should never have touched it.
[INSERT SCREENSHOT 2: Cost Explorer filtered to NAT Gateway, grouped by usage type, showing "Data Processing" charges]

Step 2: Why was traffic going through NAT at all?

Our private subnets were talking toS3through the NAT Gateway. Every time an app fetched a file, synced logs, or backed up data, that traffic:
  1. Left the private subnet
  1. Hit the NAT Gateway (💰 charged per GB)
  1. Traveled out and back into S3 over the internet path
The fix cost almost nothing:**S3 Gateway VPC Endpoints are free.**Not "cheap" — literally $0. And they keep traffic entirely inside the AWS network.

Step 3: The fix (10 minutes, zero downtime)

1. Create the endpoint:
bash
aws ec2 create-vpc-endpoint \
--vpc-id vpc-0abc123 \
--service-name com.amazonaws.us-east-1.s3 \
--route-table-ids rtb-0abc123 rtb-0def456
2. Lock down the bucket policyso the endpoint is actually used:
json
{
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": "arn:aws:s3:::our-critical-bucket/*",
"Condition": {
"StringNotEquals": \{

"aws:SourceVpce": "vpce-0abc123"

}
}
}
3. Verifythe traffic switched over within the hour:
[INSERT SCREENSHOT 3: NAT Gateway processing charges dropping off a cliff after the endpoint went live — this before/after image is the money shot of the article]

The results

Metric
Before
After
NAT Gateway processing
~$42/day
~$3/day
Monthly NAT cost
$1,410
$95
Deployment effort
—
10 minutes
Downtime
—
Zero
**90% reduction.**One endpoint. No architecture rewrite.

4 lessons I'm carrying forward

  1. **Free services are still invisible until you look.**Cost anomalies don't announce themselves — set a Billing alarmbeforeyou need it.
  1. **VPC endpoints should be a default, not an afterthought.**If your private subnet talks to any AWS service via NAT, you're likely paying a toll you don't owe.
  1. **Group by usage type, not just service.**The "NAT Gateway" total hid the real story — data processing was the line item that exploded.
  1. **The best cost optimizations don't change performance.**Same speed, same reliability, 90% cheaper. That's the dream scenario.

Your turn

Check your bill today:**Cost Explorer → filter by "NAT Gateway" → group by usage type.**If you see heavy data processing charges, you have a free fix waiting.
What's the biggest silent cost leak you've found in your account? Drop it in the comments — let's build a collection of "gotchas" that save everyone money.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article