What is a VPC and what are the CIDR constraints?
BeginnerConceptVPC and Networking
Answer
A VPC is a logically isolated virtual network in one Region, spanning all AZs. The primary IPv4 CIDR must be between /16 and /28; you can add secondary CIDRs later. Use RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and plan them centrally, because overlapping CIDRs make peering and Transit Gateway routing impossible.
More on VPC and Networking
What makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.BeginnerWhat are the nuances of security group statefulness?Advanced