mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 18:56:57 -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>
28 lines
604 B
Plaintext
28 lines
604 B
Plaintext
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
|
|
}
|
|
method "unencrypted" "fallback" {}
|
|
state {
|
|
method = method.unencrypted.fallback
|
|
fallback {
|
|
method = method.aes_gcm.example
|
|
}
|
|
}
|
|
plan {
|
|
method = method.unencrypted.fallback
|
|
fallback {
|
|
method = method.aes_gcm.example
|
|
}
|
|
}
|
|
}
|
|
}
|