write-only argument
A resource argument, added in Terraform 1.11, that is sent to the provider but never stored in plan or state, typically a password.
In more detail
Because Terraform cannot see its previous value, you change it by bumping a companion version argument. It must be supported by the provider for that resource, and it is how an ephemeral secret can be passed into a resource.
Related terms
- ephemeral values — Values, added in Terraform 1.10, that exist only during a run and are never written to state or plan files.
- managed database — A database service a cloud provider runs for you, handling machines, patching and backups while you manage settings and data.
- secret — Any value that grants access, such as a password, access token or private key, and must be kept out of code and version control.
Taught in
- The Problem With Local State — Infrastructure as Code with Terraform
- Security: Secrets In State And Ephemeral Values — Infrastructure as Code with Terraform
- Sensitive Data, Ephemeral Values And Secrets From Vault — HashiCorp Terraform Associate (004) Exam Prep
- HCP Workspaces, Projects And Variable Sets: Which Value Wins? — HashiCorp Terraform Associate (004) Exam Prep