Trying to eliminate DataTransfer-Regional-Bytes on NAT gateways

Last month we started getting EU-DataTransfer-Regional-Bytes charges on our NAT gateway (1 NAT in eu-west-1a), so we deployed a NAT per AZ expecting to eliminate that charge completely on our NAT gateways.

That change was 2 weeks ago and we are seeing around 50% reduction in EU-DataTransfer-Regional-Bytes charges on said NATs, I enabled VPC flow logs and verified that all private subnets are using their respective NAT gateway in the same AZ, which it does.

I’m seeing lots of traffic from CloudFront, but from what I understand that traffic should be free, we also have VPC endpoints for S3 & ECR, ther’s also some traffic to EC2 but most of it is via the IGW, also all IPs are public.

What am I missing here?

Hi there,

Our Billing support team will gladly look into this with you. Please reach out to them via your Support Center: http://go.aws/support-center.

Don’t hesitate to make use of our call / chat option to speed up their response time: http://go.aws/phone-support.

- Rafeeq C.

How are you connecting to CloudFront? Can you provide more details there?

Nothing special, there is no VPC endpoint for CloudFront so just via internet.

Is it possible your destination is in the same region but a different customer in a different AZ? For example, maybe you have cloud-based monitoring like DataDog. You have agents behind your NAT Gateway which reach out to DataDog, which is hosted in the same region but ends up in a different AZ. This traffic would result in the charges you describe and would NOT be considered out to the internet since they don’t leave the AWS network.

Here are a few things to consider:

- generally data ingress is free but you pay a lot for egress

- NAT gateway is the main exception which will charge you for all the data that flows through it, both ingress and egress

- Cloudfront will charge you for data out as most other services do, but they have a free tier of 1 TB monthly

- load balancers charge for data out except when the data also gows through CloudFront, so you’re not charged twice for it

- traffic from EC2 to any destinations going through the IGW will be charged as data out

- traffic between EC2s in different AZs within the region doesn’t go through the NAT GW but will still be charged