The VPC staging (10.8.0.0/16) exists and has no subnets. This time you pick the blocks.
-
Keep the VPC's id in
VPC:shVPC=$(aws ec2 describe-vpcs --filters Name=tag:Name,Values=staging --query "Vpcs[0].VpcId" --output text) -
Create four
/24subnets inside10.8.0.0/16, none overlapping another:Name Zone web-aus-east-1aweb-bus-east-1bdata-aus-east-1adata-bus-east-1b -
List the VPC's subnets to check your plan.
-
Try a fifth subnet,
extra, that overlaps one of yours, and read the error.