Terraform & IaC
Data sources
Data sources read existing infrastructure for configuration.
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
- 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.
- Terraform workspaceBeginner · 4 min
Terraform workspace separates multiple state instances.
- 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.
- Moved blocksBeginner · 4 min
Moved blocks record resource address refactors.