File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -47,20 +47,13 @@ jobs:
4747 export AWS_PROFILE=apim-dev
4848 account_id="$(aws sts get-caller-identity --query Account --output text)"
4949
50- export environment="internal-dev"
5150 export sub_environment="$(WORKSPACE)"
5251
53- echo "Checking if bucket immunisation-${sub_environment}-terraform-state-files exists..."
5452 BUCKET_NAME="immunisation-${sub_environment}-terraform-state-files"
5553 FALLBACK_BUCKET_NAME="immunisation-internal-dev-terraform-state-files"
5654
57- if ! aws s3api head-bucket --bucket "$BUCKET_NAME" 2>/dev/null; then
58- echo "Bucket $BUCKET_NAME does NOT exist. Falling back to internal-dev for init only..."
59- export ENVIRONMENT="internal-dev"
60- export BUCKET_NAME="$FALLBACK_BUCKET_NAME"
61- else
62- export ENVIRONMENT="$environment"
63- export BUCKET_NAME="$BUCKET_NAME"
55+ export ENVIRONMENT="internal-dev"
56+ export BUCKET_NAME="$FALLBACK_BUCKET_NAME"
6457 cd terraform
6558 make init
6659
You can’t perform that action at this time.
0 commit comments