Transit Gateway
AWS Transit Gateway simplifies network management by connecting multiple VPCs and on-premises networks through a central hub, enhancing performance and scalability.
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:
```text theme={null} 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:
```text theme={null}
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.
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 |
By adopting AWS Transit Gateway, you streamline your network architecture, enable scalable transitive routing, and centralize connectivity for both cloud and on-premises environments.
- Transit Gateway simplify networking between VPCs and On-Premise environments
- Allow for transitive routing
- Must specify one subnet from each AZ to be used by the transit gateway to route traffic
- Can peer with other Transit Gateways in different regions or AWS accounts