finds.dev← search

// the find

brikis98/terraform-up-and-running-code

★ 3,233 · HCL · MIT · updated Dec 2023

Code samples for the book "Terraform: Up & Running" by Yevgeniy Brikman

The companion code for Yevgeniy Brikman's Terraform: Up & Running book, third edition. It walks through Terraform concepts chapter by chapter — state, modules, loops, testing, team workflows — with working AWS examples at each step. Aimed squarely at developers learning Terraform from scratch or leveling up past basic resource definitions.

The chapter-by-chapter folder structure mirrors the book perfectly, so you can drop into any concept without reading everything before it. The progression from single server to module-based multi-environment layout is genuinely well-paced — you can see the refactoring decisions happen incrementally rather than being handed a finished pattern. Lock files are committed for every example, so `terraform init` works without version surprises. The testing chapter includes both Ruby Serverspec and OPA/Rego examples, which is more honest about the testing landscape than most Terraform tutorials.

The last push was December 2023, and Terraform has moved — this predates the OpenTofu fork drama and doesn't address it at all, which is a real gap for anyone now choosing between the two. Everything is AWS; if you're on Azure or GCP, you'll need to mentally translate all the concrete examples. The Ruby testing examples (Serverspec) feel dated — the community has largely moved to Terratest in Go, and new readers may find themselves learning a testing pattern they'll immediately discard. There's also no CI configuration included, so readers learn to write tests but not how to actually run them automatically.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →