diff --git a/ci/terraform/get_image.sh b/ci/terraform/get_image.sh index 6c67ce52a..4c08664a8 100755 --- a/ci/terraform/get_image.sh +++ b/ci/terraform/get_image.sh @@ -12,9 +12,9 @@ echo "Setting the ECR repo registry ID" # Else pull image from tools-prod to deploy ( Build , integration , Staging & prod ) frontend if [ "$ENVIRONMENT" = "dev" ]; then - REGISTRY_ID=$(aws ssm get-parameter --name "AUTH_DEV_TOOLS_ACT_ID" --with-decryption --query 'Parameter.Value' --output text) + REGISTRY_ID=$TF_VAR_auth_dev_tooling_act_id else - REGISTRY_ID=$(aws ssm get-parameter --name "AUTH_PROD_TOOLS_ACT_ID" --with-decryption --query 'Parameter.Value' --output text) + REGISTRY_ID=$TF_VAR_auth_prod_tooling_act_id fi echo "Loading frontend image..." @@ -39,6 +39,8 @@ sidecar_image=$(aws ecr batch-get-image \ echo "Exporting env variables..." + + export TF_VAR_image_uri="$REGISTRY_ID.dkr.ecr.eu-west-2.amazonaws.com/$FRONTEND_REPO_NAME" export TF_VAR_image_digest=$frontend_image export TF_VAR_image_tag=$GITHUB_SHA