AWS Networking Fundamentals
Transit Networks
Transit Gateway
AWS Transit Gateway provides a central hub to connect multiple VPCs and on-premises networks, eliminating the complexity of full mesh peering and point-to-point VPNs. With built-in transitive routing, it scales to support thousands of attachments, simplifying network management and improving performance.
For detailed guidance, see AWS Transit Gateway Documentation.
Challenges with VPC Peering
By default, VPCs are isolated. You must create peering connections to enable traffic flow:
- VPC A ↔ VPC B
- VPC B ↔ VPC C
However, peering is non-transitive: A cannot reach C via B. For four VPCs, you’d need a full mesh:
VPC1—VPC2
VPC1—VPC3
VPC1—VPC4
VPC2—VPC3
VPC2—VPC4
VPC3—VPC4
Similarly, on-premises connectivity requires individual VPNs or Direct Connect links per VPC. As the number of VPCs grows, the network quickly becomes difficult to scale and manage.
What Is AWS Transit Gateway?
AWS Transit Gateway acts as a regional network hub to interconnect your VPCs and on-premises environments with a single gateway.
Simplified VPC Connectivity
Instead of a mesh of peerings, attach each VPC to the Transit Gateway:
VPC1 ↔ TGW
VPC2 ↔ TGW
VPC3 ↔ TGW
VPC4 ↔ TGW
Now all VPCs communicate through the hub, with automatic transitive routing.
Subnet Attachments
When you attach a VPC to a Transit Gateway, you specify one subnet in each Availability Zone:
- If your VPC spans AZ-A, AZ-B, and AZ-C, create three Transit Gateway subnets.
- TGW uses these subnets for routing and high availability.
Note
Each Transit Gateway attachment requires at least one subnet per AZ. Plan your AZ strategy accordingly to avoid single points of failure.
Centralized On-Premises Connectivity
You can terminate all VPN and Direct Connect circuits on the Transit Gateway, reducing tunnel count and improving bandwidth utilization.
- VPN Consolidation: One VPN tunnel to TGW replaces N tunnels to N VPCs.
- Direct Connect: Attach a DX gateway to TGW for high throughput and low latency.
Transit Gateway Peering
Use Transit Gateway peering to connect hubs across regions or accounts:
Peering Type | Description |
---|---|
Inter-Region | Connect TGWs in different AWS Regions |
Cross-Account | Share TGW attachments across AWS accounts |
Key Features and Benefits
Feature | Benefit |
---|---|
Simplified Topology | Single hub replaces complex VPC mesh and point-to-point links |
Transitive Routing | Automatic routing between all attached VPCs and on-prem networks |
Subnet Attachments | High availability with one subnet per AZ |
Peering Capabilities | Global reach via cross-region and cross-account connections |
Warning
Ensure your AWS account limits and route table entries align with the number of Transit Gateway attachments to avoid resource exhaustion.
By adopting AWS Transit Gateway, you streamline your network architecture, enable scalable transitive routing, and centralize connectivity for both cloud and on-premises environments.
Watch Video
Watch video content