Introduction
Sometimes you want to keep certain output information private, like passwords or keys. Terraform lets you mark outputs as sensitive so they don't show up in normal command outputs. This helps keep secrets safe while still sharing important info.
When you output a database password from Terraform but don't want it to appear in the terminal.
When you share Terraform state with your team but want to hide API keys in outputs.
When you automate deployments and need to pass secret values without exposing them in logs.
When you want to prevent accidental copying of sensitive data from Terraform output.
When you use Terraform outputs in scripts but want to keep secrets secure.