DevOps · interactive
VPCs, subnets and security groups
A VPC is your private network in the cloud. Public subnets route to the internet gateway; private subnets don't, and reach out only through a NAT gateway. Security groups then allow specific ports from specific sources. Trace five flows.
Internet
Internet gateway
Internet gateway
VPC 10.0.0.0/16
Public subnet 10.0.1.0/24 · route 0.0.0.0/0 → IGW
web serverNAT gateway
Private subnet 10.0.2.0/24 · route 0.0.0.0/0 → NAT
database
- Internet→
- Internet gateway→
- Public subnet→
- web SG: 443 from 0.0.0.0/0→
- web server
Allowed
The public subnet's route table sends 0.0.0.0/0 to the internet gateway, and the web security group allows 443 from anywhere.
Traffic
Step 1 of 4 · read left to right
In production
Tools and technologies
Every cloud network is built from these pieces.
Not tied to one language — use these names when you search docs or design a system.