Two VPCs are attached to a Transit Gateway, but traffic between them fails.
IntermediateTroubleshootingCloud networking: VPC, firewalls, NAT, VPN and proxies
Answer
Likely causes → Three places to get right: (1) each VPC's subnet route tables need a route to the other CIDR via tgw-xxxx; (2) each attachment must be associated with a TGW route table; (3) that TGW route table needs routes (propagated or static) to the other attachment. Plus the TGW attachment must have a subnet in each AZ the traffic uses.
Diagnose →
aws ec2 get-transit-gateway-route-table-associations --transit-gateway-route-table-id <rtb>
aws ec2 search-transit-gateway-routes --transit-gateway-route-table-id <rtb> \
--filters Name=type,Values=static,propagated
aws ec2 describe-route-tables --filters Name=vpc-id,Values=<vpc> --query 'RouteTables[].Routes[?TransitGatewayId]'
Reachability Analyzer and TGW Flow Logs help confirm which hop drops.
Fix → Add the missing VPC route, association or propagation; add attachment subnets in missing AZs.
Prevent → Use TGW Network Manager / Route Analyzer and codify TGW route tables, especially when segmenting prod and non-prod.
More on Cloud networking: VPC, firewalls, NAT, VPN and proxies
An EC2 instance in a private subnet hangs on `apt-get update` at `Connecting to archive.ubuntu.com`.BeginnerA new EC2 instance in a "public" subnet can't be reached over SSH from the internet; the SG allows port 22 from your IP.BeginnerThe SG allows inbound 443 and the app works from inside the VPC, but internet clients time out. The subnet NACL allows inbound 443.IntermediateA VPC peering connection is `Active`, but instances in the two VPCs can't ping each other.BeginnerALB targets are `unhealthy` with reason `Target.Timeout`, and VPC Flow Logs show `REJECT` from the ALB's IPs to the instances.BeginnerAn AWS Site-to-Site VPN tunnel stays `DOWN`, and the on-prem firewall logs show `NO_PROPOSAL_CHOSEN`.Intermediate