Add TF_CONFIG fallback for bootstrap config path

This commit is contained in:
cloudneutral 2025-12-24 15:14:35 +08:00
parent f8aaf33e07
commit 9c69f9f6a5
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", "")
)
}