From e832e918aee629f0d24ac4f1264a4427c14f9619 Mon Sep 17 00:00:00 2001 From: aidenvaines-cgi Date: Mon, 18 May 2026 10:12:25 +0100 Subject: [PATCH] CCM-18050: adding group variable to pre.sh context --- infrastructure/terraform/bin/terraform.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infrastructure/terraform/bin/terraform.sh b/infrastructure/terraform/bin/terraform.sh index 2851ba31..342d572b 100755 --- a/infrastructure/terraform/bin/terraform.sh +++ b/infrastructure/terraform/bin/terraform.sh @@ -8,7 +8,7 @@ ## # Set Script Version ## -readonly script_ver="1.8.1"; +readonly script_ver="1.9.0"; ## # Standardised failure function @@ -391,7 +391,7 @@ rm -rf ${component_path}/.terraform; # Run global pre.sh if [ -f "pre.sh" ]; then - PROJECT="${project}" REGION="${region}" COMPONENT="${component}" AWS_ACCOUNT_ID="${aws_account_id}" ENVIRONMENT="${environment}" ACTION="${action}" \ + PROJECT="${project}" REGION="${region}" COMPONENT="${component}" GROUP="${group}" AWS_ACCOUNT_ID="${aws_account_id}" ENVIRONMENT="${environment}" ACTION="${action}" \ source pre.sh || error_and_die "Global pre script execution failed with exit code ${?}"; fi; @@ -427,7 +427,7 @@ fi; # Run pre.sh if [ -f "pre.sh" ]; then - PROJECT="${project}" REGION="${region}" COMPONENT="${component}" AWS_ACCOUNT_ID="${aws_account_id}" ENVIRONMENT="${environment}" ACTION="${action}" \ + PROJECT="${project}" REGION="${region}" COMPONENT="${component}" GROUP="${group}" AWS_ACCOUNT_ID="${aws_account_id}" ENVIRONMENT="${environment}" ACTION="${action}" \ source pre.sh || error_and_die "Component pre script execution failed with exit code ${?}"; fi;