Interview Prep/Real-World Interview/Terraform and Ansible

What does `sensitive = true` do, and what doesn't it do?

AdvancedConceptTerraform and Ansible
Answer

It hides the value in plan and apply output. The value is still stored in plain text in state, so protect the state bucket with encryption and IAM. Terraform 1.10+ ephemeral values and resources can keep some secrets out of state entirely.

All Real-World Interview questions Roadmap: Interview readiness

More on Terraform and Ansible