Files
opentf/internal/command/e2etest/testdata/encryption-flow/variables.tf
Christian Mesh be433be96f Support for static variables used with encrypted plans (#1998)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Co-authored-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-07-28 12:11:43 -04:00

14 lines
438 B
HCL

// When the migration to encrypted plan and state is wanted,
// in case the passphrase for the encryption is given via
// -var/-var-file, it is recommended to add the variable
// handling that to the configuration before adding the
// encryption configuration. Apply this, and only after start
// with the encryption configuration.
variable "passphrase" {
type = string
sensitive = true
}
locals {
key_length = sensitive(32)
}