finds.dev

brikis98/terraform-up-and-running-code

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

View on GitHubHomepage ↗

★ 3,233HCLMITupdated Dec 2023

// the take

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.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
3,233
Forks
2,026
Language
HCL
License
MIT
Last commit
13 Dec 2023

// nearby

If terraform-up-and-running-code isn't quite it.

All repos →