mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
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>
14 lines
438 B
HCL
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)
|
|
} |