Introduction: A hands-on walkthrough of building out an empty AWS VPC: create a subnet, attach an internet gateway, add a route, then lock things down with a security group and a network ACL.
In the previous article, I toured the default VPC and then created my own, called test . It came out as an empty shell: no subnets, no internet gateway, one route table.
This time I start filling it in. I'll create a subnet, attach an internet gateway, build a route table with a route to the internet, then add the two firewall layers: a security group and a network ACL. By the end, you'll know what each piece does and the order they go in.
Step 1: Create a subnet
A subnet is a slice of your VPC's IP range, living in one Availability Zone. Resources like EC2 instances are launched into subnets, never directly into the VPC.
For reference, here's what the default VPC gives you: three subnets, one per AZ, all in the 172.31.x.x range.
My VPC is empty, so I'll build mine by hand.…