mirror of
https://github.com/opentofu/opentofu.git
synced 2026-05-28 04:15:54 -04: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>
27 lines
604 B
Text
27 lines
604 B
Text
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
|
|
}
|
|
}
|
|
}
|
|
}
|