How do you troubleshoot "A cannot reach B" systematically in a VPC?
IntermediateProductionVPC & Network Architecture
Answer
Walk the path in order: DNS resolves correctly, source security group egress, source subnet route table, NACLs both ways, destination route table (return path), destination security group ingress, the service listening on the right interface, host firewall. Use Reachability Analyzer, flow logs and nc.
REJECT in flow logs on the destination ENI points to security group or NACL; no record at all points to routing.
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?IntermediateHow do you design connectivity for 50+ VPCs across accounts and regions?Advanced