Advanced|18 hours|35 lessons

Terraform in Production

Operating a Terraform estate as a production system: state as a database with locking and corruption modes, blast radius and the arithmetic that sets the state boundary, drift and the plan that does not match the apply, refactoring live infrastructure, modules across many teams, and who is allowed to apply. Lifetime updates included.

Text-based, no videos
9 modules, 35 lessons
Lifetime access

What you'll learn

The state file as a system you operate, with locking, corruption modes and a recovery path
How the state boundary sets blast radius, and the plan time and lock contention arithmetic behind it
Detecting drift, deciding what to do about it, and which drift to accept
Why the apply sometimes does not match the plan, and how to work that failure
Refactoring live infrastructure: renames, imports, and moving resources between states
Designing module interfaces that many teams can adopt, and migrating consumers without a freeze
What infrastructure code can actually be tested, and what only an apply will tell you
Account structure, the apply identity, and running the estate for many teams

Curriculum

9 modules · 35 lessons
01

State Is a Database You Operate

The state file as a system with consistency, locking and corruption modes, rather than a file you never look at.

4 lessons
02

Blast Radius and the State Boundary

How you split state decides what one mistake can destroy, and the arithmetic that sets the boundary.

4 lessons
04

Dependencies and Apply Order

The graph Terraform builds, the edges it cannot see, and what a partial apply leaves behind.

4 lessons
05

Modules at Organisation Scale

Sharing infrastructure definitions across many teams without a registry full of things nobody can change.

4 lessons
06

Refactoring Live Infrastructure

Changing the shape of the code without changing what is running, which the tool does not do for you.

4 lessons
07

Testing and Policy

What can be verified before an apply, and what can only be verified by applying.

4 lessons
08

Running It for Many Teams

The platform side: bootstrapping, account structure, who is allowed to apply, and staying current.

5 lessons
09

Capstone

A complete Terraform estate design combining every module, with explicit tradeoffs.

1 lessons

About the Author

Sharon Sahadevan

Sharon Sahadevan

AI Infrastructure Engineer

Building production GPU clusters on Kubernetes. H100s, large-scale model serving, and end-to-end ML infrastructure across Azure and AWS.

10+ years designing cloud-native platforms with deep expertise in Kubernetes orchestration, GitOps (Argo CD), Terraform, and MLOps pipelines for LLM deployment.

Author of KubeNatives, a weekly newsletter read by 3,000+ DevOps and ML engineers for production insights on K8s internals, GPU scheduling, and model-serving patterns.

Ready to master this topic?

Start with the free preview lesson and see for yourself.