diff --git a/infrastructure/terraform/per_account/main.tf b/infrastructure/terraform/per_account/dev/main.tf similarity index 100% rename from infrastructure/terraform/per_account/main.tf rename to infrastructure/terraform/per_account/dev/main.tf diff --git a/infrastructure/terraform/per_account/modules/placeholder.txt b/infrastructure/terraform/per_account/dev/modules/placeholder.txt similarity index 100% rename from infrastructure/terraform/per_account/modules/placeholder.txt rename to infrastructure/terraform/per_account/dev/modules/placeholder.txt diff --git a/infrastructure/terraform/per_account/parameters/locals.tf b/infrastructure/terraform/per_account/dev/parameters/locals.tf similarity index 100% rename from infrastructure/terraform/per_account/parameters/locals.tf rename to infrastructure/terraform/per_account/dev/parameters/locals.tf diff --git a/infrastructure/terraform/per_account/parameters/main.tf b/infrastructure/terraform/per_account/dev/parameters/main.tf similarity index 100% rename from infrastructure/terraform/per_account/parameters/main.tf rename to infrastructure/terraform/per_account/dev/parameters/main.tf diff --git a/infrastructure/terraform/per_account/parameters/provider.tf b/infrastructure/terraform/per_account/dev/parameters/provider.tf similarity index 100% rename from infrastructure/terraform/per_account/parameters/provider.tf rename to infrastructure/terraform/per_account/dev/parameters/provider.tf diff --git a/infrastructure/terraform/per_account/parameters/terraform.tf b/infrastructure/terraform/per_account/dev/parameters/terraform.tf similarity index 100% rename from infrastructure/terraform/per_account/parameters/terraform.tf rename to infrastructure/terraform/per_account/dev/parameters/terraform.tf diff --git a/infrastructure/terraform/per_account/parameters/vars.tf b/infrastructure/terraform/per_account/dev/parameters/vars.tf similarity index 100% rename from infrastructure/terraform/per_account/parameters/vars.tf rename to infrastructure/terraform/per_account/dev/parameters/vars.tf diff --git a/infrastructure/terraform/per_account/placeholder.txt b/infrastructure/terraform/per_account/dev/placeholder.txt similarity index 100% rename from infrastructure/terraform/per_account/placeholder.txt rename to infrastructure/terraform/per_account/dev/placeholder.txt diff --git a/scripts/infrastructure/terraform/terraform-utils.sh b/scripts/infrastructure/terraform/terraform-utils.sh index 8f8bd0c1f..33568e947 100644 --- a/scripts/infrastructure/terraform/terraform-utils.sh +++ b/scripts/infrastructure/terraform/terraform-utils.sh @@ -107,7 +107,7 @@ function _get_terraform_dir() { local account_wide=$2 local parameter_deploy=$3 local dir=$(pwd) - if [ "$parameter_deploy" = "parameter_deploy"] && ["$account_wide" = "account_wide"]; then + if [ "$parameter_deploy" = "parameter_deploy" ] && [ "$account_wide" = "account_wide" ]; then echo "${dir}/infrastructure/terraform/per_account/$env/parameters" elif [ "$account_wide" = "account_wide" ]; then echo "${dir}/infrastructure/terraform/per_account/$env"