concept

VPC CIDRs, subnets and routes

A VPC is regional and subnets are zonal. CIDR ranges must fit inside the VPC without overlap. Ordinary IPv4 subnets reserve five addresses; route selection prefers the most specific matching prefix in the simple static case.

Formal Syntax & Structure

aws syntaxaws
destination CIDR → route target

Working Example

Example Snippetaws
10.42.0.0/16 -> local; 0.0.0.0/0 -> nat-a
AWS Reference