Where can this output's value still be read in plain text?
output "db_password" {
value = random_password.db.result
sensitive = true
}
- In the Terraform state file
- In the plan's console output
- In every apply log in CI
- Nowhere; it is encrypted
sensitive only redacts the value in CLI output; state stores it unencrypted, which is why state needs encrypted, access-controlled storage.
Play DevOps ▸