Files
opentf/website/docs/language/state/examples/encryption/configuration.sh
Александар Симић f75920b609 Fix for setting the env variable on Unix/Linux (#1463)
Signed-off-by: Александар Симић <a@repl.ist>
2024-04-04 09:58:49 -04:00

29 lines
575 B
Bash

TF_ENCRYPTION=$(cat <<EOF
terraform {
encryption {
key_provider "some_key_provider" "some_name" {
# Key provider options here
}
method "some_method" "some_method_name" {
# Method options here
keys = key_provider.some_key_provider.some_name
}
state {
# Encryption/decryption for state data
method = method.some_method.some_method_name
}
plan {
# Encryption/decryption for plan data
method = method.some_method.some_method_name
}
remote_state_data_sources {
# See below
}
}
}
EOF)