How do you size VPC CIDRs to avoid painting yourself into a corner?
IntermediateProductionVPC and Network Design
Answer
Allocate from IPAM, never overlap with on-prem or other VPCs, and leave room. A /16 per production VPC is common; a /20 or /21 per app subnet per AZ for container workloads. Keep public and data subnets smaller (/24 to /22). If you outgrow, add a secondary CIDR (up to 5 by default) and new subnets, and for EKS pod IPs use a non-routable secondary range like 100.64.0.0/16 with CNI custom networking.
More on VPC and Network Design
Walk through a production VPC layout for a multi-tier app.BeginnerOne NAT gateway or one per AZ?BeginnerWhat are the biggest levers to reduce NAT gateway cost?IntermediateWhich VPC endpoints do you create by default in a private EKS or ECS VPC?IntermediateHow do you lock down what can go through a VPC endpoint?AdvancedHub-and-spoke with Transit Gateway: how do you design route tables?Advanced