Skip to content

Commit 26931d6

Browse files
committed
pipe2
1 parent 8f6e8d4 commit 26931d6

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

azure/azure-pr-teardown-pipeline.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)