How do you design connectivity for 50+ VPCs across accounts and regions?
AdvancedProductionVPC & Network Architecture
Answer
Use Transit Gateway per region with route tables per environment (prod, nonprod, shared services, inspection), peer TGWs across regions, and share through AWS RAM. Use centralized egress and inspection VPCs with appliance mode, and AWS IPAM for non-overlapping CIDRs.
flowchart TD
P[Prod VPCs] --> TGW[Transit Gateway]
N[Nonprod VPCs] --> TGW
S[Shared services] --> TGW
TGW --> INS[Inspection VPC firewall]
TGW --> ONP[On-prem via DX and VPN]
Segmentation lives in TGW route tables: nonprod must have no route to prod.
More on VPC & Network Architecture
How would you design a production VPC for a three-tier web application?IntermediateHow many AZs and subnets should a production VPC use, and why?BeginnerWhat makes a subnet public versus private?BeginnerHow do you avoid NAT gateway single points of failure and cross-AZ charges?IntermediateWhen should you use VPC endpoints?IntermediateWhat is PrivateLink and when is it better than peering?Advanced