Skip to content

Commit e832e91

Browse files
CCM-18050: adding group variable to pre.sh context
1 parent 63fe292 commit e832e91

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

infrastructure/terraform/bin/terraform.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
##
99
# Set Script Version
1010
##
11-
readonly script_ver="1.8.1";
11+
readonly script_ver="1.9.0";
1212

1313
##
1414
# Standardised failure function
@@ -391,7 +391,7 @@ rm -rf ${component_path}/.terraform;
391391

392392
# Run global pre.sh
393393
if [ -f "pre.sh" ]; then
394-
PROJECT="${project}" REGION="${region}" COMPONENT="${component}" AWS_ACCOUNT_ID="${aws_account_id}" ENVIRONMENT="${environment}" ACTION="${action}" \
394+
PROJECT="${project}" REGION="${region}" COMPONENT="${component}" GROUP="${group}" AWS_ACCOUNT_ID="${aws_account_id}" ENVIRONMENT="${environment}" ACTION="${action}" \
395395
source pre.sh || error_and_die "Global pre script execution failed with exit code ${?}";
396396
fi;
397397

@@ -427,7 +427,7 @@ fi;
427427

428428
# Run pre.sh
429429
if [ -f "pre.sh" ]; then
430-
PROJECT="${project}" REGION="${region}" COMPONENT="${component}" AWS_ACCOUNT_ID="${aws_account_id}" ENVIRONMENT="${environment}" ACTION="${action}" \
430+
PROJECT="${project}" REGION="${region}" COMPONENT="${component}" GROUP="${group}" AWS_ACCOUNT_ID="${aws_account_id}" ENVIRONMENT="${environment}" ACTION="${action}" \
431431
source pre.sh || error_and_die "Component pre script execution failed with exit code ${?}";
432432
fi;
433433

0 commit comments

Comments
 (0)