Sub topic 13
Hybrid traffic with VPN and Direct Connect
This chapter assumes you know VPCs, route tables, and the transfer categories from earlier chapters. It covers what you pay when traffic moves between AWS and an on-premises network, and how to choose a link with that cost in mind.
How hybrid traffic is billed
Hybrid links have two kinds of charge: a fixed charge for the connection and a per-GB charge for data. Direction matters. Data flowing into AWS is free. Data flowing out of AWS is billed.
- Site-to-Site VPN charges an hourly fee per connection. Data out of AWS over a VPN is billed at the standard internet data transfer out rate, because the tunnel runs over the public internet.
- Direct Connect charges an hourly port fee based on port speed. Data out of AWS over Direct Connect is billed at a lower per-GB rate than internet egress.
A VPN is cheap to start and expensive per GB. Direct Connect has a higher fixed cost and a lower per-GB rate. The right choice depends on your monthly egress volume. Check current rates on the AWS pricing pages for your Region and Direct Connect location.
Choosing a link
Where the other costs hide
The link itself is only part of the bill. Watch for these.
- Transit Gateway data processing. If a VPN or Direct Connect attaches to a Transit Gateway, every GB passing through is charged a per-GB processing fee, plus an hourly attachment fee. A VPN terminating directly on a virtual private gateway avoids that fee.
- Tunnel throughput limits. Each VPN tunnel is limited to about 1.25 Gbps. Exceeding it means adding connections, and every extra connection adds an hourly fee.
- Backup paths. A second connection for resilience costs fixed fees even when idle.
- NAT in the path. Traffic from private subnets to on-premises over a VPN or Direct Connect does not need a NAT gateway. Check route tables so on-premises CIDR ranges point at the virtual private gateway or Transit Gateway, not at the NAT gateway.
- AWS service traffic. Reaching S3 from on-premises over the internet pays internet rates. Over Direct Connect, a public virtual interface (VIF) carries S3 traffic at the Direct Connect rate. Alternatively, an S3 interface endpoint is reachable over a private VIF.
Reducing the volume itself
The cheapest GB is the one you do not send. For hybrid links:
- Compress data before sending it, for example gzip on exports.
- Move batch jobs to the side of the link where the data already lives.
- Cache repeated reads on-premises instead of fetching them each time.
- Replicate only changed data, using incremental sync, not full copies.
Comparing the options
| Option | Fixed cost | Per-GB cost out of AWS | Best fit |
|---|---|---|---|
| Site-to-Site VPN | Low, hourly per connection | Internet egress rate | Small or variable volume, quick setup |
| Direct Connect | Higher, hourly per port | Lower than internet | Large, steady volume |
| VPN plus Direct Connect | Both | Depends on active path | Resilience for critical workloads |
Exercise
A team sends 40 TB per month from AWS to its data center over a Site-to-Site VPN attached to a Transit Gateway. Name two charges that apply to this traffic and one change that could lower the bill.
Show answer
The traffic pays the internet data transfer out rate for the VPN, and the Transit Gateway data processing fee per GB. Moving to Direct Connect would lower the per-GB egress rate at this volume. Terminating the VPN on a virtual private gateway, if no Transit Gateway routing is needed, would remove the processing fee.