Free tool
What are your NAT gateways costing you, and what would VPC endpoints save?
Enter your region, how many NAT gateways you run and how much data goes through them. See the hourly and data processing cost, what free gateway endpoints for S3 and DynamoDB save, and how much traffic an interface endpoint needs before it pays for itself.
- Prices come from AWS's own price list, with the date we checked them.
- Every result shows its formula and inputs, so you can check the math.
- Everything is calculated in your browser. Nothing you enter is sent anywhere.
Loading prices…
Results
NAT gateway cost per month
Today, per month
n/a
With endpoints
n/a
Saved per month
n/a
Before and after
| Setup | NAT hours | NAT data processing | Interface endpoints | Per month |
|---|
The math
Before you switch
- Check bucket policies for
aws:SourceIpfirst. Once S3 traffic goes through a gateway endpoint, it no longer comes from the NAT gateway's Elastic IP, soaws:SourceIpconditions stop matching. AWS's PrivateLink guide says you can't useaws:SourceIpfor requests to S3 that traverse a VPC endpoint. Add an Allow for the endpoint withaws:SourceVpce, and in any Deny onNotIpAddressadd aStringNotEqualscheck onaws:SourceVpce, before you change routes. - Endpoints only cover the same Region. A gateway endpoint is available only in the Region where you created it (AWS docs). Traffic to buckets, tables or services in other Regions keeps going through the NAT gateway.
- Roll out one route table at a time. Associating the gateway endpoint adds a route that can drop in-flight S3 connections, so start with one private route table in a quiet window.
- Interface endpoints need DNS and a security group. Turn on private DNS and allow inbound 443 from your subnets, or pulls and log writes fail. ECR also needs the S3 gateway endpoint for image layers.
- Your NAT gateways stay. Anything going to the internet still needs them, so their hourly charge does not go away. This tool also leaves out internet data transfer, which you pay either way.
How to check
Find your own numbers
- In Cost Explorer, filter Service to EC2-Other and group by usage type.
NatGateway-Hoursis the fixed part;NatGateway-Bytesis the GB to enter above. - Turn on VPC Flow Logs on each NAT gateway's network interface for a day, then sum bytes by destination and by source in CloudWatch Logs Insights. Match the top addresses against AWS's published IP ranges, where S3 and DynamoDB have their own service values.
- Flow logs bill for ingestion, so delete the flow log when you have your numbers.
- The step-by-step commands are in Gotcha 4 of our free guide, 12 cloud bill gotchas.
Optional
Get the free guide: 12 cloud bill gotchas, and how to get the money back.
The calculator works without it. The signup sends only your email address.
Privacy
Your numbers stay on this page
- The calculator runs in your browser. The page loads its own price list from this site and sends nothing you type.
- Its Content-Security-Policy only allows connections back to this site, and it loads no third-party scripts, fonts or trackers.
- A shared link keeps your inputs after the
#. Browsers never send that part of a link to a server. - The only request with something you typed is the optional email signup. It sends your email address and the tool's name, nothing else.
Want us to look at the real thing?
Book a free 30-minute consult: we'll look at your bill with you, no obligation and no sales pitch. Or check your own cloud bill first with our free Cloud Bill Gotchas Checker.
Book a free 30-minute consult