Terraform & IaC
Terraform workspace
Terraform workspace separates multiple state instances.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A command to try yourself
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Terraform & IaC
- Providers and version lockingBeginner · 5 min
Why a pipeline that passed for three months can start changing 14 resources on a Monday, and the two files that stop it.
- Modules: reuse without copy-pasteBeginner · 5 min
Fourteen log buckets across five repos, three different encryption settings, and an audit question nobody can answer. A module turns that into one definition.
- Data sourcesBeginner · 5 min
Data sources read existing infrastructure for configuration.
- Reading a plan: create, change, destroy and replaceBeginner · 5 min
The summary line of a plan counts replacements twice. How to read every symbol, find the attribute that forced a replacement, and spot drift.
- terraform importBeginner · 4 min
terraform import associates existing infrastructure with state.
- Terraform refreshBeginner · 4 min
Terraform refresh reads current provider objects into planning.