Module 6 of 8
Terraform State Management
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
- Lesson 6.1: The Local Backend (6a)
- Lesson 6.2: State Locking (6b)
- Lesson 6.3: Remote State with the Backend Block (6c)
- Lesson 6.4: Drift and State Operations (6d)
- Lesson 6.5: CLI Workspaces (6c, 8c)
- Lab 6A: Remote Backend, Migration, Locking, Workspaces, and Remote State (30 min)
- Lab 6B: Drift, Refresh-Only, moved, removed, and state rm (25 min)
- Knowledge Check 6 (10 questions)
- Cheat Sheet 6: State Management