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>
This commit is contained in:
Oleksandr Levchenkov
2024-06-24 17:18:16 +03:00
committed by GitHub
parent 8f8e0aa4aa
commit 19b5287b8f
21 changed files with 281 additions and 66 deletions

View File

@@ -1,8 +1,17 @@
variable "passphrase" {
type = string
default = "aaaaaaaa-83f1-47ec-9b2d-2aebf6417167"
}
locals {
key_length = 32
}
terraform {
encryption {
key_provider "pbkdf2" "basic" {
passphrase = "aaaaaaaa-83f1-47ec-9b2d-2aebf6417167"
key_length = 32
passphrase = var.passphrase
key_length = local.key_length
iterations = 200000
hash_function = "sha512"
salt_length = 12