VPC Connectivity Failures

Security groups, NACLs, routing, VPC peering, NAT gateway failures, and VPC Flow Logs diagnosis.

Overview

Overview

VPC connectivity failures are among the most common issues in AWS architectures. They often look like network timeouts but come from misconfigured security groups, NACLs, missing routes or broken peering.

Each of those controls sits at a different point on the path a packet takes, and a packet must pass all of them to reach the service. A security group (SG) is a firewall on an instance's network interface. A network ACL (NACL) is a firewall on a whole subnet. The route table tells the subnet where to send traffic for each address range (CIDR).

Key concepts

  • Security group (stateful)
  • NACL (stateless)
  • VPC Flow Logs
  • VPC peering route requirement
  • Ephemeral ports

Interview questions

  • You added a new microservice in VPC-B, but services in VPC-A (which is peered) cannot connect. What do you check?

Sign up free to read the full topic

More Troubleshooting topics

Start free on Cariara · Coding problems · System design studio