Introduction to Sensitive Data and Secrets Management
Managing sensitive values in Terraform: redacting them with sensitive, keeping them out of state with ephemeral values and write-only arguments, and reading secrets from HashiCorp Vault.
- 3 lessons
- Module quiz
Terraform handles credentials and secrets constantly. It can hide them in output, keep them out of state entirely, or read them from HashiCorp Vault.
What the exam expects
Questions test what sensitive does and does not do, ephemeral variables, outputs and resources, write-only arguments and their version arguments, and the safe way to read Vault secrets. Ephemeral values and write-only arguments are new in the 004 exam.
How this module is organized
Sensitive Values and State covers sensitive marking and secret-handling practices. Ephemeral Values and Write-Only Arguments covers keeping secrets out of state. Secrets Management with Vault covers Vault and the Vault provider.