Interview Prep/AWS/VPC and Network Design

Hub-and-spoke with Transit Gateway: how do you design route tables?

AdvancedProductionVPC and Network Design
Answer

Use separate TGW route tables for segmentation instead of one flat table:

flowchart LR
    Prod["Prod VPCs"] --> TGW["Transit Gateway"]
    Dev["Dev VPCs"] --> TGW
    Shared["Shared services VPC"] --> TGW
    Egress["Egress / inspection VPC"] --> TGW
    TGW --> OnPrem["Direct Connect / VPN"]

The prod route table propagates shared services, egress and on-prem, but not dev; dev does the same and cannot see prod. Shared services propagates to everyone. Disable default association and propagation on the TGW so every new attachment is placed deliberately. For inspection, enable appliance mode on the inspection VPC attachment to keep flows symmetric.

aws All AWS questions Roadmap: AWS core services

More on VPC and Network Design