Module 6 of 8

Terraform State Management

3.0 hours (lessons 95 min, labs 55 min, knowledge check 15 min, cheat sheet review 15 min)

Learning objectives

ID You will be able to…
6a Describe the local backend: where state and backups live, and its limits for teams.
6b Explain which operations lock state, which backends support locking, and when to use -lock-timeout and force-unlock.
6c Configure a remote backend, use partial configuration, migrate state between backends, read another configuration's outputs with terraform_remote_state, and use CLI workspaces.
6d Detect and resolve drift, and change state safely with refresh-only runs, moved and removed blocks, and terraform state subcommands.

In this module