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.
More on Variables, Locals, Outputs and Types
How do you declare an input variable?BeginnerIn what order does Terraform load variable values?BeginnerHow do you define an output and what is it for?BeginnerWhat is the difference between locals and variables?BeginnerWhat are the primitive types in Terraform?BeginnerHow do list, set and map differ?Intermediate