Terraform & IaC
Output sensitivity: failure analysis
Explain what the sensitive flag on a Terraform output does and does not protect. The value is hidden in display output but still written to state, plan files and machine-readable output.
What you will be able to do
- Explain where a sensitive output value is still stored or printed.
- Decide how to test whether a secret reaches state, plans and logs.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Terraform & IaC
- Terragrunt orchestrationAdvanced · 4 min
Explain how Terragrunt runs many Terraform units in dependency order and passes outputs between them. Mock outputs and wide run scopes are the two places where a run…
- IaC code reviewAdvanced · 4 min
Explain how to review a Terraform change by its plan, not just its diff. Formatting and validate checks are cheap, but access and network changes need a reader who…
- Secret handling: operational verificationAdvanced · 4 min
Explain how to verify that a secret stays out of the places it should not reach. A repeatable test with a dummy value searches state, plans and logs before merge.