AWS · Networking and Content Delivery
AWS Transit Gateway
A regional network hub that connects many VPCs, VPN connections and Direct Connect links through one set of route tables.
On the SAA-C03 exam listHybrid connectivityNetwork segmentationMulti-account
What it is and what problem it solves
AWS Transit Gateway is a managed router in one Region. VPCs, Site-to-Site VPN connections, Direct Connect (through a Direct Connect gateway) and other Transit Gateways each attach to it, and the gateway's route tables decide which attachments can reach which.
Without it, joining n VPCs by peering takes n(n-1)/2 connections and still cannot share a VPN or Direct Connect link, because peering is not transitive. With it, each network has one attachment and routing is transitive through the hub.
When to use it
- You connect more than a handful of VPCs, especially across many accounts, and want one place to manage routing.
- Several VPCs must share one VPN or Direct Connect connection to an on-premises network.
- You need segmentation: for example production and development VPCs can both reach shared services but not each other, using separate route tables.
- You want to share the gateway with other accounts through AWS Resource Access Manager.
When to avoid it
- Two or three VPCs with light traffic: VPC peering has no hourly charge and is simpler.
- Access to one service across accounts, especially with overlapping address ranges: PrivateLink exposes a single service without joining whole networks.
- Latency-critical paths where an extra routing hop matters may be better served by direct peering.
- Overlapping CIDR ranges cannot be routed through Transit Gateway either.
Scaling model and bottlenecks
One gateway supports thousands of attachments, and bandwidth is quoted per Availability Zone for each VPC attachment rather than as one number for the gateway. The practical bottlenecks are the combined route count across all route tables, the bandwidth of each VPN tunnel (use ECMP over several tunnels with dynamic routing to aggregate), and per-attachment limits. For many Regions, peer Transit Gateways across Regions.
Performance, latency and throughput
Traffic between VPCs and Direct Connect attachments can use jumbo frames, while traffic over VPN connections is limited to a smaller packet size. The gateway adds a routing hop compared with direct peering, which is rarely noticeable for most workloads but matters for very latency-sensitive paths.
Limits and quotas
Several Transit Gateway limits are not self-service: bandwidth and packet-rate figures, and the route cap, are raised by contacting your AWS account team.
| Item | Value | Context | Source |
|---|---|---|---|
| Transit gateways per account | 5 Can be raised with a quota request |
Source checked |
|
| Attachments per transit gateway | 5,000 Can be raised with a quota request |
Source checked |
|
| Route tables per transit gateway | 20 Can be raised with a quota request |
Source checked |
|
| Routes across all route tables of one transit gateway | 10,000 | Static and dynamic routes combined; raising it goes through your Solutions Architect or Technical Account Manager. | Source checked |
| Bandwidth per VPC attachment, per Availability Zone | Up to 100 Gbps in each direction | Raising it goes through your Solutions Architect or Technical Account Manager. | Source checked |
| Peering attachments per transit gateway | 50 Can be raised with a quota request |
Source checked |
|
| MTU between VPCs, Direct Connect and peering attachments | 8,500 bytes | Traffic over VPN connections can use an MTU of 1,500 bytes. |
Source checked |
Quotas and limits change. Check the linked source before designing around a number.
Cost model
What you pay for
Two dimensions, on top of normal data transfer:
- Attachment-hours: each VPC, VPN, Direct Connect, Connect or peering attachment is billed per hour, and partial hours count as full hours.
- Data processing per GB: traffic sent from a VPC, Direct Connect or VPN attachment into the gateway is billed per GB. For peering attachments, the sending gateway's owner pays.
Where it is cost-efficient
Many VPCs and accounts that would otherwise need dozens of peering connections and duplicated VPN links. One shared hybrid connection through the gateway can be cheaper and far simpler to run.
Where costs grow
- Large traffic volumes between VPCs that talk to each other constantly, because every GB through the hub is billed, while same-zone peering has no per-GB processing charge.
- Many attachments that carry little traffic, since each is billed for every hour it exists.
- Inter-Region peering, which adds inter-Region data transfer.
Cost controls and common surprises
Keep chatty pairs of VPCs on direct peering and use the gateway for the rest, delete attachments that are no longer used, and watch the data-processing line in Cost Explorer. Check the pricing page for the current per-hour and per-GB rates in your Region.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
- Route-table isolation: attachments are associated with one route table, and propagate or are given routes in others, so you can keep environments apart.
- Blackhole routes drop traffic you never want forwarded.
- Resource sharing through AWS RAM limits which accounts can attach.
What you configure
Design the route tables deliberately: a transit gateway with one shared route table lets every attached network reach every other one. Combine it with security groups and network ACLs inside each VPC, and use IAM to limit who can create attachments and change routes.
Logging and monitoring
Transit Gateway Flow Logs record traffic through the gateway; CloudTrail records configuration changes.
Related security services
AWS Network Firewall and a centralised inspection VPC can be placed in the path for inspection of east-west and egress traffic.
Shared responsibility
AWS operates the gateway. You own the route design, who may attach, and what traffic is inspected.
Availability, backup and failure behavior
A transit gateway is a regional, managed, highly available service. To keep traffic flowing when one Availability Zone is unavailable, attach each VPC through subnets in more than one zone. Cross-Region designs use one gateway per Region with peering attachments between them.
Common service combinations
VPC (attachments), Site-to-Site VPN and Direct Connect gateway (hybrid), AWS RAM (sharing across accounts), AWS Network Firewall in an inspection VPC, and Route 53 Resolver rules shared across VPCs.
Business application examples
- An organisation with 60 VPCs across 15 accounts and two data centres, with development isolated from production.
- A central egress VPC where all outbound internet traffic is inspected before leaving.
- Merging networks after an acquisition, with separate route tables until the address plans are reconciled.
Exam cues and common confusions
- "Many VPCs, many accounts, plus on premises, simplest to manage" points to Transit Gateway.
- Peering is not transitive; Transit Gateway is.
- Segmentation: separate Transit Gateway route tables, not separate gateways.
- Share it with other accounts using AWS RAM.
- Higher VPN bandwidth: ECMP across several tunnels, which needs dynamic routing.
- Overlapping CIDRs still cannot be routed; consider PrivateLink for a single service.
Related
Courses and lessons
- VPC peering vs Transit Gateway · AWS Solutions Architect – Associate (SAA-C03) · Members
- Hybrid networking: Site-to-Site VPN, Client VPN and Direct Connect · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- Amazon VPC · Service
- AWS Site-to-Site VPN · Service
- AWS Direct Connect · Service
- AWS Resource Access Manager (AWS RAM) · Service
- AWS PrivateLink · Service
- VPC peering vs Transit Gateway · Comparison
- Site-to-Site VPN vs Direct Connect · Comparison
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.