Interview Prep/AWS/VPC and Connectivity

Instances in a new subnet cannot get an IP: `InsufficientFreeAddressesInSubnet`.

IntermediateTroubleshootingVPC and Connectivity
Answer

Likely causes → Subnet exhausted.

Diagnose →

aws ec2 describe-subnets --subnet-ids subnet-0abc --query 'Subnets[].AvailableIpAddressCount'

Fix →

  1. Launch in another subnet
  2. Add subnets
  3. Add secondary CIDR

Prevent → Monitor available IPs.

aws All AWS questions Roadmap: AWS core services

More on VPC and Connectivity