Interview Prep/Terraform/Variables, Locals, Outputs and Types

What does `sensitive = true` do on a variable or output?

BeginnerConceptVariables, Locals, Outputs and Types
Answer

It redacts the value in plan and apply output ((sensitive value)) and in terraform output. It does not encrypt anything: the value is still stored in plaintext in state and in plan files. Protect the state backend, and prefer ephemeral values or secret managers for real secrets.

All Terraform questions Roadmap: Terraform

More on Variables, Locals, Outputs and Types