How a single folder of config spins up a VPC, two subnets, a gateway, a firewall, and a running server — and the two small things that tripped me up.

The AWS console and I have a complicated relationship. Every time I build a network by hand, I click through the same fifteen screens, forget one route table, and end up with a server that can't reach the internet for reasons I can't remember an hour later.

So I stopped clicking. This is the story of a small Terraform project that builds an entire AWS network from scratch — and tears it back down — with two commands. Nothing exotic. Just the pieces you actually need, wired together so they're reproducible.

Here's the whole thing on one picture before we get into the code.

┌───────────────┐