From 9c69f9f6a50b1fa71a71ca64bf17c0da88b2e183 Mon Sep 17 00:00:00 2001 From: cloudneutral Date: Wed, 24 Dec 2025 15:14:35 +0800 Subject: [PATCH] Add TF_CONFIG fallback for bootstrap config path --- .../aws-cloud/bootstrap/identity/terragrunt.hcl | 5 ++++- .../aws-cloud/bootstrap/lock/terragrunt.hcl | 5 ++++- .../aws-cloud/bootstrap/state/terragrunt.hcl | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/terraform-hcl-standard/aws-cloud/bootstrap/identity/terragrunt.hcl b/terraform-hcl-standard/aws-cloud/bootstrap/identity/terragrunt.hcl index c551adad..71a476df 100644 --- a/terraform-hcl-standard/aws-cloud/bootstrap/identity/terragrunt.hcl +++ b/terraform-hcl-standard/aws-cloud/bootstrap/identity/terragrunt.hcl @@ -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", "") + ) } diff --git a/terraform-hcl-standard/aws-cloud/bootstrap/lock/terragrunt.hcl b/terraform-hcl-standard/aws-cloud/bootstrap/lock/terragrunt.hcl index 3d2b31ff..007495c5 100644 --- a/terraform-hcl-standard/aws-cloud/bootstrap/lock/terragrunt.hcl +++ b/terraform-hcl-standard/aws-cloud/bootstrap/lock/terragrunt.hcl @@ -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", "") + ) } diff --git a/terraform-hcl-standard/aws-cloud/bootstrap/state/terragrunt.hcl b/terraform-hcl-standard/aws-cloud/bootstrap/state/terragrunt.hcl index 91d9129d..633bb094 100644 --- a/terraform-hcl-standard/aws-cloud/bootstrap/state/terragrunt.hcl +++ b/terraform-hcl-standard/aws-cloud/bootstrap/state/terragrunt.hcl @@ -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", "") + ) }