View on GitHub

What Terraform state actually is

Cloud planned

Terraform remembers what it built. Lose that memory and it builds everything again.

The idea

Terraform compares three things: the code you wrote, the state file it saved last time, and what really exists in the cloud. The plan is the difference between them.

The state file maps each resource in your code to a real ID, which is why it must be stored remotely, locked during changes, and never edited by hand. Terragrunt adds structure for running the same code across many environments.

What the lesson will build

Key ideas

The video

When it’s published, the code will live in cloud/ and this page will link to it.


All topics · Suggest a topic