Skip to main content
Cloud Egress Costs Explained (and How to Avoid Them)

Cloud Egress Costs Explained (and How to Avoid Them)

KU
· Founder & Chief Editor
• 8 min read•Updated •

Egress is the line item nobody sizes upfront and everyone regrets at month-end. Here's the taxonomy, the surprise bills, and what actually cuts it.

Key takeaways

  • Egress is the per-GB charge for data leaving a provider boundary.
  • On AWS us-east-1, internet egress starts at $0.09 per GB after 100 GB free, cross-region is $0.02, and cross-AZ is $0.01 each way.
  • Cut it with a CDN, S3 gateway endpoints instead of NAT, zone-aware routing, and zero-egress storage like R2.

Egress is the per-GB charge for data leaving a metered boundary: the internet, another region, or another availability zone. On AWS us-east-1, internet egress costs $0.09/GB for the first 10 TB after 100 GB free. Cut it with S3 gateway endpoints, zone-aware routing, a CDN, and zero-egress storage for heavy origins.

Verified against

AWS public price list for data transfer (us-east-1 offer file, published 2026-09-16), AWS CloudFront and VPC pricing pages, Cloudflare R2 pricing docs, and the Kubernetes topology-aware routing docs. Checked October 2026.

Egress shows up on the invoice as a four-figure surprise, and the postmortem always starts with "wait, we pay for that?" Yes. The boundaries are not where your architecture diagram says they are.

The four meters, with real numbers

These are AWS list prices from us-east-1 as of October 2026. GCP and Azure use the same shape (free ingress, tiered internet egress, a smaller charge for inter-region), but check their calculators for exact rates; we don't quote numbers we haven't checked.

Traffic pathAWS us-east-1 rateWho paysCommon culprit
Internet out, first 10 TB$0.09/GB (after 100 GB free)Source accountServing media straight from S3 or EC2
Internet out, next 40 TB / next 100 TB / over 150 TB$0.085 / $0.07 / $0.05 per GBSource accountDownloads, public datasets
Cross-region (e.g. to eu-west-1)$0.02/GB out, inbound freeSending regionReplication, multi-region databases
Cross-AZ in the same region$0.01/GB in each directionBoth sidesService mesh round-robin across zones
NAT gateway processing$0.045/GB processed (US East Ohio rate on the VPC pricing page)VPC ownerImage pulls and S3 traffic through NAT
Same AZ, private IPFreeNobody

Two details matter more than the headline rates. The 100 GB free allowance is aggregated across all services and regions, so it disappears fast. And cross-AZ is billed on both ends: a request and its response that each cross a zone boundary cost $0.02/GB in total, not $0.01.

Find out where your bytes are going first

Before fixing anything, group last month's bill by usage type. This needs Cost Explorer enabled and ce:GetCostAndUsage permission:

Terminal
aws ce get-cost-and-usage \
    --time-period Start=2026-09-01,End=2026-10-01 \
    --granularity MONTHLY \
    --metrics UnblendedCost UsageQuantity \
    --group-by Type=DIMENSION,Key=USAGE_TYPE \
    --query 'ResultsByTime[0].Groups[?contains(Keys[0], `Bytes`)].[Keys[0], Metrics.UnblendedCost.Amount]' \
    --output table

Read the usage type suffixes: DataTransfer-Out-Bytes is internet egress, DataTransfer-Regional-Bytes is cross-AZ, NatGateway-Bytes is NAT processing, and region-pair names like USE1-EUW1-AWS-Out-Bytes are cross-region. Whichever row is largest is where you start.

The four surprise bills we see most

Chatty cross-AZ microservices. You spread services across three zones for resilience, which is a good instinct. Then service A calls service B forty times per request, and the mesh balances round-robin across zones with no locality preference. Two-thirds of those calls cross a zone boundary, metered on both sides.

Cross-region replication backfill. Someone turns on S3 replication or a second database region for DR. The steady-state delta is fine; the initial copy of 40 TB at $0.02/GB is an $819 line nobody budgeted, and every write after that pays the toll.

Serving media straight from S3. Every view of every image pays internet egress at $0.085-0.09/GB. A popular asset served a few million times becomes a real number.

NAT gateway processing. This one stacks a second meter on top. Private-subnet instances pulling container images, packages, or S3 objects through a NAT gateway pay per GB processed, even when the destination is an AWS service in the same region. We cover the full teardown in cutting the NAT gateway line item.

What actually cuts it

Close the NAT leak with a gateway endpoint. AWS states there are no hourly or data processing charges for gateway endpoints, and they exist for S3 and DynamoDB. This is usually the fastest win:

Terminal
aws ec2 create-vpc-endpoint \
    --vpc-id vpc-0abc1234 \
    --vpc-endpoint-type Gateway \
    --service-name com.amazonaws.us-east-1.s3 \
    --route-table-ids rtb-0def5678 rtb-0aaa9999

Creating or modifying the endpoint switches routes and drops open TCP connections to S3, so don't do it mid-backup. For other services, interface endpoints cost $0.01 per endpoint-hour plus $0.01/GB processed in us-east-1, which still beats NAT on volume.

Keep traffic in the zone. In Kubernetes, topology-aware routing prefers endpoints in the caller's zone:

k8s/orders-service.yaml
apiVersion: v1
kind: Service
metadata:
  name: orders
  annotations:
    service.kubernetes.io/topology-mode: Auto
spec:
  selector:
    app: orders
  ports:
    - port: 80
      targetPort: 8080

Put a CDN in front of anything public. AWS waives transfer between CloudFront and AWS origins, so S3-to-CloudFront is free and you pay CloudFront's rate instead. Be honest about the math, though: CloudFront's US list price starts at $0.085/GB, barely under S3's $0.09. The CDN win comes from caching (fewer origin requests, lower latency) and from volume tiers that drop to $0.04/GB past 150 TB, not from a dramatic per-GB discount at small scale. CloudFront also sells flat-rate plans now (Free, Pro at $15/month, Business at $200/month); check their included transfer against your volume.

Move egress-heavy origins to zero-egress storage. Cloudflare R2 charges $0 for egress, $0.015/GB-month for storage, and $0.36 per million reads as of October 2026. For media libraries and public datasets, that changes the math entirely. Our R2 vs S3 comparison covers where the request pricing bites back.

Compress text. gzip or brotli on JSON, HTML, CSS, and JS cuts bytes on the wire substantially. Images and video are already compressed, so this does nothing for media.

A worked example at list price

Take a hypothetical workload in us-east-1: 50 TB/month of images served from S3, 10 TB of cross-AZ service traffic, and 5 TB through a NAT gateway.

  • S3 internet egress: 10 TB at $0.09 plus 40 TB at $0.085 = $4,403
  • Cross-AZ: 10 TB at $0.01 each direction = $205
  • NAT processing: 5 TB at $0.045 = $230
  • Total: about $4,838/month

Now the fixes. A gateway endpoint takes NAT to $0. Topology-aware routing that halves cross-AZ calls saves about $102. CloudFront at list price delivers the same 50 TB for about $4,147, a saving of roughly $256. Total after: about $4,250, roughly 12% less. Moving the images to R2 behind Cloudflare instead: zero egress, and at an average 500 KB per image, about 105 million reads cost roughly $38 a month at list price, before Cloudflare's cache absorbs any of them. That's the structural fix, and it's why we tell egress-heavy teams to question the storage choice before tuning cache keys.

Where this breaks

Topology-aware routing silently does nothing in several cases the docs list: fewer endpoints than zones, nodes missing the topology.kubernetes.io/zone label, or an allocation the controller can't balance. Gateway endpoints don't work from on-premises networks, peered VPCs in other regions, or through a transit gateway. R2 is S3-compatible, not identical, and moving the origin means paying one last full egress bill to copy the data out. Committed-use discounts and private pricing can change every number above.

Error strings you'll hit on the way

  • AccessDenied from S3 right after adding a gateway endpoint: a bucket policy uses aws:SourceIp, which no longer matches. Use aws:VpcSourceIp or aws:sourceVpce.
  • RequestTimeout or hangs from private subnets after removing NAT: some traffic was going to a service without an endpoint. Check the security group allows the S3 prefix list.
  • Topology hints missing in kubectl get endpointslices -o yaml: count endpoints per zone and check node zone labels.

Questions people ask

Is data transfer into AWS free?

Yes. Inbound traffic from the internet is free on AWS, and the price list shows inter-region inbound at $0.00/GB too. You pay on the way out: $0.09/GB to the internet for the first 10 TB in us-east-1 after the 100 GB monthly allowance, and $0.02/GB from the sending region for cross-region copies.

Does AWS charge for traffic between availability zones?

Yes. In us-east-1, regional data transfer between AZs is $0.01/GB in each direction, so a byte that leaves one zone and arrives in another costs $0.02/GB in total. Traffic within the same zone over private IPs is free. Topology-aware routing in Kubernetes and zone-aware clients are the usual fixes.

How do I stop NAT gateway data processing charges for S3?

Create a gateway VPC endpoint for S3 and attach it to the private subnets' route tables. AWS charges nothing hourly or per GB for gateway endpoints, and S3 traffic stops flowing through the NAT gateway. It works only within the same region and not from on-premises or transit gateway paths.

The call we'd make

Egress is an architecture problem wearing a billing costume. Run the Cost Explorer query first, close the NAT leak with gateway endpoints because it's free and takes ten minutes, and treat cross-AZ chatter as a design smell. Don't expect a CDN alone to halve a media bill at list price; if a workload is genuinely egress-heavy, move the origin to zero-egress storage. Size egress in the design review, not the postmortem. The broader cloud cost optimization guide and the S3 cost traps post cover the line items that sit next to this one.

Sources

Explore topics:AWSCloud
React
Share this post
Cite this article
Plain text

Kiril Urbonas (2026). Cloud Egress Costs Explained (and How to Avoid Them). DevOpsNess. Updated 2026-11-15. https://www.devopsness.com/blog/data-transfer-egress-costs

Markdown

[Cloud Egress Costs Explained (and How to Avoid Them)](https://www.devopsness.com/blog/data-transfer-egress-costs) (Kiril Urbonas, DevOpsNess, updated 2026-11-15)

KU

Kiril Urbonas

Founder & Chief Editor

607 articles
View all articles by Kiril Urbonas

You might have missed

Evergreen posts worth revisiting.