
Carve a VPC's subnets across zones with cidrsubnet from one base range, so every range is derived, non-overlapping and follows the base when it changes.
Attach an internet gateway and manage public and private route tables with their routes and subnet associations, so the routing graph reads back exactly as specified.
Manage two security groups' rule sets as separate rule resources, including a group-to-group reference, so each set reads back exactly and removing one rule touches only that rule.
Generate a whole network from one base range and a keyed subnet table - zoned subnets, public and private route tiers, and a group-referencing firewall layer - verified attribute by attribute with minimal-diff edits.