Cloud Economics
How to map cloud data transfer charges
To map cloud data transfer charges, trace each application flow from the sender to the receiver, including the return path and any gateway or CDN in between. Record the service, zone, region, direction, and measured bytes for each leg. Then match each leg to billing records for internet egress, inter-zone or inter-region transfer, NAT gateway processing, or CDN delivery, and assign the observed charges to the workload that caused them.
In the AWS Cost and Usage Report (CUR), start with lineItem/UsageType and lineItem/ProductCode. For a path through an Amazon VPC NAT gateway, check gateway hours and per-GB processing alongside the transfer rows. For Google Cloud VM-to-VM traffic, record the sending project, both VM locations, and the address type.
Draw the paths your application actually uses
Choose a billing window and a feature with a clear owner. Start with an action such as “generate a preview” and follow the bytes through the resources that handle it. Include later work, such as an upload, retry, or copy to a recovery region. Give each direction its own row so uploads and responses can be compared independently. Add the observed byte count, its measurement source, and the window it covers.
Record the route in use. For a worker writing an object, capture the destination endpoint and check the worker subnet’s route table to see which path applies. The Amazon VPC User Guide describes how instances in private subnets can reach the internet through a public NAT gateway. In the Amazon VPC pricing example, a same-region Amazon S3 upload through a NAT gateway incurs processing even though the transfer to S3 in that example carries no transfer charge.
Add the service and deployment mode to each row. In its June 2021 architecture walkthrough, AWS illustrated application traffic between Availability Zones separately from replication between the primary and standby in an Amazon RDS Multi-AZ deployment. The June 2021 walkthrough says that cross-AZ traffic between the Amazon EC2 instances incurred data transfer charges and that replication between the Amazon RDS primary and standby incurred no additional data transfer charge. Use the example to decide which legs to map, then check the pricing terms for the services and billing period.
Match each leg to the billing export
Use this table for an initial classification. Keep the service, location, and direction beside the matched billing row so you can retrace the decision when someone asks about a charge.
| Traffic on the map | Fields or charges to check | How to read the result |
|---|---|---|
| AWS resource to the public internet | Region-DataTransfer-Out-Bytes | Match the outbound direction and check the product code before assigning the row to the origin service. AWS CUR guide |
| AWS resources in different Availability Zones in the same Region | Region-DataTransfer-Regional-Bytes | For each metered resource, the AWS CUR guide describes charges for inbound and outbound traffic and two line items per transfer. Check the service’s own pricing for exceptions. |
| AWS resources in different Regions | AWS-Out-Bytes and AWS-In-Bytes usage-type suffixes | AWS assigns the transfer charge to outbound usage from the source Region. The corresponding destination entry records incoming usage at zero transfer cost. AWS CUR guide |
| Traffic through an Amazon VPC NAT gateway | Gateway hours, data processing, and applicable transfer charges | Record the gateway’s provisioned time separately from the volume it processes. A path can incur processing and transfer charges together. Amazon VPC pricing |
| Amazon CloudFront edge to viewer | AmazonCloudFront in lineItem/ProductCode | CloudFront uses similar transfer usage types to other internet delivery. Its region prefix identifies the edge location used for the transfer. AWS CUR guide |
For Google Cloud, start with the sending VM’s project. Google Cloud’s network pricing documentation attributes VM-to-VM transfer cost to that project and distinguishes paths by zone, region, network, and IP address type. Record whether the workload uses internal or external addresses. For VM-to-VM traffic within one Google Cloud region, Google lists internet transfer rates for traffic using external IPv4 or external IPv6 addresses between different VPC networks. For CDN traffic, use a separate row for origin-to-CDN traffic and check its treatment. For transfers from Compute Engine or Google Kubernetes Engine to Cloud CDN, Google lists no transfer charge and notes that cache-fill charges can apply.
Walk through a preview pipeline
This illustrative inventory follows a private-subnet Amazon EC2 worker that generates a preview, sends it to Amazon S3 in the same Region through a same-zone NAT gateway, and sends a copy to an EC2 worker in a recovery Region. The preview is delivered to viewers via CloudFront. Collect the worker and gateway placement, the active route to S3, the recovery destination Region, and measured traffic in each direction during the export window.
| Flow to trace | Evidence to collect | What to reconcile |
|---|---|---|
| Worker uploads the preview to S3 | Worker placement, S3 destination Region, route through the gateway, and upload bytes | Test whether the deployment matches the same-region S3 example. Track processing usage and keep the gateway’s provisioned hours on a separate row. |
| Worker sends a recovery copy | Sending and receiving Regions and bytes sent by the worker | Match the outbound charge to the source Region and retain the destination entry for reconciliation. AWS CUR guide |
| CloudFront delivers the preview | Viewer-delivery bytes and the relevant billing product code | Match edge delivery to AmazonCloudFront. Keep a separate row for any origin-to-CloudFront traffic you observe. AWS CUR guide |
If the worker later runs in a different Availability Zone from its gateway, add that boundary to the upload path. Amazon VPC pricing calls out the transfer charges between an EC2 instance and a NAT gateway in different zones. If you test an S3 gateway endpoint, compare the routes and processing usage before and after the change. In its same-region S3 pricing example, AWS describes how routing S3 traffic through a gateway endpoint avoids NAT gateway processing charges for that path. Continue tracking the NAT gateway’s hourly charge while the gateway remains provisioned and available.
Reconcile the charges before assigning them
Use the same time window for the map and export. Group the AWS transfer rows by product code and usage type, then narrow them to the locations on the map. AWS documents that unprefixed regional and internet transfer usage types refer to US East (N. Virginia). Keep the export’s unit beside each usage quantity, and record any unit conversion before comparing it with application measurements.
Track a transfer total and a billing total. For the transfer total, count the observed bytes once per mapped direction and leg. For the billing total, add the applicable charge rows. This keeps the amount of traffic your application moved distinct from the amount the provider billed across services. For example, AWS’s inter-region transfer example shows the same movement in two usage entries, with the charge attached to the outbound entry. Keep the application measurement and billed amount in separate columns, as you would when reconciling an AI usage receipt with an invoice.
Assign rows with a clear workload match first. For a shared NAT gateway, document your allocation rule. You could split processing cost by measured workload bytes while keeping hourly cost with the team that owns the gateway. Mark that split as an allocation and keep any unattributed cost visible. After those costs reconcile, include the feature’s share in cost per active user.
Save the billing window, the route configuration you checked, and the provider evidence beside the worksheet. When you revisit an older bill, use terms you can verify for that period and record when you checked them. The difference between a snapshot date and an evidence date helps keep those dates distinct.
Sources
- Understanding data transfer charges (AWS, undated)
- Amazon VPC pricing (AWS, undated)
- NAT gateways (AWS, undated)
- Network pricing (Google Cloud, undated)
- Overview of data transfer costs for common architectures (AWS Architecture Blog, June 30, 2021)
Interactive report
- The Egress Toll: A small web app budgets $400 a month for compute. Follow its modeled invoice as outbound traffic adds five charges, then see how an oversized password archive drove more than AU$11,000 in extra Azure charges.
How this note was produced
Drafted with AI assistance from committed ByteCosts pricing snapshots and deterministic cost formulas. Figures are grounded in the linked sources (last updated 2026-11-30). Read our editorial & automation policy, inspect the methodology, or report a discrepancy.
How to map cloud data transfer charges. ByteCosts. Updated 2026-11-30. https://bytecosts.com/blog/map-cloud-data-transfer-charges/