Amazon VPC in thirty-six slides: the VPC the session builds and the default VPC it replaces; CIDR blocks, planning the ranges, subnets in Availability Zones and the five reserved addresses; route tables, the most specific route, the internet gateway and what makes a subnet public; the NAT gateway, one per AZ, the NAT instance and what NAT costs; network ACLs and security groups, stateless and stateful filtering; Elastic IP addresses, a bastion host and Session Manager; the S3 gateway endpoint, its prefix-list route, and a bucket policy that allows reads only through it; tracing a connection that fails. Every section ends with five exam questions.
The slides
The tool is thirty-six slides: an introduction, then seven sections, listed on its left. Every section after the
introduction ends with five exam questions, each with its answer and the tempting wrong answer.
- 0. Introduction
- Amazon Virtual Private Cloud (VPC): the VPC the lab builds, each part numbered by its section.
- The default VPC:
172.31.0.0/16, one /20 per AZ, the internet gateway and the open network ACL.
- 1. Addressing
- A CIDR block: the prefix's bits, and the sizes a VPC may have.
- Planning the address ranges: our
/24s in the /16, and the networks they must not overlap. - Subnets and Availability Zones: four subnets in two AZs.
- The five reserved addresses: what each is for, and a real
/20 with 4,091 free.
- 2. Routing
- A route table: the local route, associations, the main route table.
- The most specific route: four destinations through the private route table.
- The internet gateway: the address translation, packet by packet.
- What makes a subnet public: the route to the internet gateway.
- 3. NAT
- A NAT gateway: the source address at each hop.
- One NAT gateway per Availability Zone, and the regional NAT gateway.
- A NAT gateway or a NAT instance.
- What the NAT path costs: a month of one NAT gateway.
- 4. Filtering
- Two filters on a packet's path: the network ACL, then the security group.
- A network ACL: rules in number order, the first match decides.
- Stateless filtering: the reply needs its own rule: ephemeral ports.
- Security groups and network ACLs: the comparison.
- 5. Reaching instances
- Elastic IP addresses in a VPC, a bastion host, Session Manager, and the two compared.
- 6. The S3 gateway endpoint
- The S3 gateway endpoint: the path through NAT and the path through the endpoint.
- The route the endpoint adds: S3's prefix list.
- A bucket policy condition on the endpoint:
aws:SourceVpce and aws:PrincipalArn. - Deny with StringNotEquals: four requests, and why two Deny statements.
- The lockout risk: a Deny on
s3:*, and the root user's way out.
- 7. Tracing connectivity
- Tracing a connection out of a private subnet: six checks in order.
- Symptoms and their causes.
The buttons on the left and right edges move between slides. So do the arrow keys and a swipe.
The lab
Amazon VPC Lab: a Network from Scratch builds it.
The default VPC's subnets, their free-address counts, its main route table and network ACL, and S3's prefix list
pl-63a5400a and its ranges were read from an account with the CLI on 2026-11-16. The prices are the published ones
for us-east-1. The project VPC's IDs are placeholders in AWS's form (vpc-1234567890abcdef0), and the public addresses
are from the documentation ranges 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24.
Sources