What is a Transit Gateway (TGW)?
AWS Transit Gateway is like a big highway junction that connects multiple VPCs, on-prem networks, and even other AWS accounts—all in one central place.
Without TGW → Every VPC needs lots of VPC peering connections.
With TGW → All VPCs connect to ONE central place.
Why do we need Transit Gateway? (Important Reason)
PROBLEM with VPC Peering:
- Cannot connect many VPCs easily
- Peering grows exponentially
- Cannot do transitive routing
- Cannot scale beyond a few VPCs
Example:
- VPC A peers with B
- B peers with C
- A cannot talk to C
You need separate peering.
Transit Gateway SOLVES all these:
- It allows transitive routing
- Connect 1000s of VPCs
- Manage routing in one place
- Connect VPC ↔ VPC ↔ On-Prem ↔ VPN