Free · 12 chapters · Beginner to advanced
Terraform Field Guide
Learn Terraform the way it is used in production, from your first plan to many environments built from one set of modules: one idea per chapter, interactive plan and apply simulators, real terraform sessions, cost notes, a quiz and a mini mission at the end of each chapter.
- Chapters ready
- 12 of 12
- Length
- 9 hours
- Runs on
- Your laptop
- Done by you
- 0/12
Who teaches this
Written by Joshua Sequeira, a founding engineer who owns Symbl's AWS platform: approximately seven to eight environments, all built from one set of Terraform modules, shipped through GitHub Actions.
Where a chapter draws on that work, it is marked From production so you can tell lived experience from general guidance. Read the case study.
Chapters
12 chapters, each building on the last.
- Ready
- Done by you
Chapter 01 · 35 min · done
Why Terraform: from click-ops to code
Start from zero: what goes wrong when infrastructure lives in a console, and the plan-and-apply idea that fixes it.
Chapter 02 · 40 min · done
Providers, resources and your first apply
Write a configuration, see the API calls behind init, plan and apply, and read a plan line by line.
Chapter 03 · 45 min · done
State: what Terraform remembers
Why the state file exists, where to keep it, and how locking stops two applies from overwriting each other.
Chapter 04 · 40 min · done
Variables, outputs and locals
One configuration, different inputs: typed variables, which value wins, locals and outputs.
Chapter 05 · 40 min · done
Data sources and the dependency graph
Read what already exists, and see how Terraform orders and parallelises everything from your references.
Chapter 06 · 50 min · done
Modules: write it once
Package a service so every team builds it the same way, and ship module changes without surprising production.
Chapter 07 · 45 min · done
Many environments from one codebase
Dev, staging and prod that differ by inputs, not by accident, with separate state and access.
Chapter 08 · 45 min · done
Lifecycle, imports and refactoring
Change names, adopt existing resources and protect the ones you cannot lose.
Chapter 09 · 45 min · done
Drift and reviewing plans
Catch console changes before they catch you, and review any plan like a reviewer.
Chapter 10 · 50 min · done
Terraform in CI/CD
A plan on every pull request, an apply on merge, no long-lived keys.
Chapter 11 · 50 min · done
Secrets, policy and cost
Keep secrets out of state, block risky changes and see the bill before you apply.
Chapter 12 · 60 min · done
Capstone: an AWS environment from scratch
Put every chapter together in one repository you can show.
What you will build
Build a production-shaped AWS environment from one set of modules, with remote state, a reviewed plan on every pull request, and dev, staging and prod that cannot drift apart.
Every chapter ends with a mini mission that adds one piece. By the capstone you have a repository and a running cluster you can show in an interview.
Questions
- Is it free?
- Yes. Every chapter, diagram, quiz and mini mission is free, with no account needed. Progress is saved in your browser.
- Do I need a cloud account?
- Not until the capstone. The hands-on parts of chapters 1 to 11 run on your laptop with the local and random providers, with optional AWS versions. The capstone builds real AWS resources: well under a dollar for an afternoon, as long as you run terraform destroy when you finish.
- What do I need to know first?
- Comfortable in a terminal, and you have clicked around a cloud console (AWS, Azure or GCP) at least once.
- How is this different from the official docs?
- The docs describe every feature. This guide teaches the parts you use running real systems, in the order you need them, with failures you will actually meet and how to debug them.
- Who writes it?
- Joshua Sequeira, a founding engineer who builds every AWS environment at Symbl from one set of Terraform modules.
- Terraform or OpenTofu?
- Either. OpenTofu is the open-source fork of Terraform, and everything in this guide works the same with tofu in place of terraform.