Merge pull request #206 from cloud-neutral-workshop/codex/fix-invalid-variable-value-for-bootstrap_config_path

Add TF_CONFIG fallback for bootstrap config path
This commit is contained in:
cloudneutral 2025-12-24 15:15:03 +08:00 committed by GitHub
commit ffb3a6d962
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 3 deletions

View File

@ -11,5 +11,8 @@ terraform {
}
inputs = {
bootstrap_config_path = get_env("BOOTSTRAP_CONFIG_PATH", "")
bootstrap_config_path = coalesce(
get_env("TF_CONFIG", null),
get_env("BOOTSTRAP_CONFIG_PATH", "")
)
}

View File

@ -11,5 +11,8 @@ terraform {
}
inputs = {
bootstrap_config_path = get_env("BOOTSTRAP_CONFIG_PATH", "")
bootstrap_config_path = coalesce(
get_env("TF_CONFIG", null),
get_env("BOOTSTRAP_CONFIG_PATH", "")
)
}

View File

@ -7,5 +7,8 @@ terraform {
}
inputs = {
bootstrap_config_path = get_env("BOOTSTRAP_CONFIG_PATH", "")
bootstrap_config_path = coalesce(
get_env("TF_CONFIG", null),
get_env("BOOTSTRAP_CONFIG_PATH", "")
)
}