Files
opentf/internal/command/e2etest/testdata/encryption-flow/broken.tf.disabled
Oleksandr Levchenkov 19b5287b8f allow static evaluations in encryption configuration (#1728)
Signed-off-by: ollevche <ollevche@gmail.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Oleksandr Levchenkov <ollevche@gmail.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
2024-06-24 10:18:16 -04:00

30 lines
549 B
Plaintext

variable "passphrase" {
type = string
default = "aaaaaaaa-83f1-47ec-9b2d-2aebf6417167"
}
locals {
key_length = 32
}
terraform {
encryption {
key_provider "pbkdf2" "basic" {
passphrase = var.passphrase
key_length = local.key_length
iterations = 200000
hash_function = "sha512"
salt_length = 12
}
method "aes_gcm" "example" {
keys = key_provider.pbkdf2.basic
}
state {
method = method.aes_gcm.example
}
plan {
method = method.aes_gcm.example
}
}
}