Files
opentf/website/docs/language/state/examples/encryption/fallback_from_unencrypted.tf
Christian Mesh d7e96665f6 Add unencrypted Method for migrations (#1458)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-04-12 09:38:21 -04:00

15 lines
349 B
HCL

terraform {
encryption {
# Methods and key providers here.
method "unencrypted" "migrate" {}
state {
method = method.some_method.new_method
fallback {
# The unencrypted method in a fallback block allows reading unencrypted state files.
method = method.unencrypted.migrate
}
}
}
}