Ad space (banner)
AD

Got the fundamentals? A structured Terraform course is a fast way to level up.

Find Terraform courses on Udemy

Affiliate link. Costs you nothing extra.

Lesson 35 / 37

What Is State Drift?

Drift is the gap that opens when the real infrastructure stops matching Terraform's state — almost always because someone changed something by hand.

Terraform detects it during plan, which then proposes changes to bring reality back to what the configuration says.

Running terraform plan after a manual console change shows the difference, and offers to undo it.

A common stumble is applying without reading, and silently reverting an emergency fix a colleague made by hand. Ask before you undo.

In real work, teams run drift detection on a schedule, and treat manual changes as something to be folded back into the configuration rather than left to be overwritten.

Terraform
Try it (type this into the pseudo terminal)
terraform plan

🧑‍💻 You can type this command into the Terraform pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)