File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5555 make init
5656
5757 # Extract values from Terraform state before destroying
58- AWS_SQS_QUEUE_NAME =$(make -s output name=aws_sqs_queue_name )
59- echo "##vso[task.setvariable variable=AWS_SQS_QUEUE_NAME]$AWS_SQS_QUEUE_NAME"
58+ ID_SYNC_QUEUE_ARN =$(make -s output name=id_sync_queue_arn )
59+ echo "##vso[task.setvariable variable=ID_SYNC_QUEUE_ARN]$ID_SYNC_QUEUE_ARN"
6060 displayName: "Init Terraform and extract MNS values"
6161
6262 - bash : |
8383 export ENVIRONMENT="dev"
8484 export SUB_ENVIRONMENT="$WORKSPACE"
8585
86- terraform workspace select "$SUB_ENVIRONMENT"
86+ terraform workspace new "$SUB_ENVIRONMENT" || terraform workspace select "$SUB_ENVIRONMENT"
8787 make destroy aws_account_no=${account_id} environment="$ENVIRONMENT" sub_environment="$SUB_ENVIRONMENT"
8888 displayName: Destroy terraform PR workspace and linked resources
8989 retryCountOnTaskFailure: 2
You can’t perform that action at this time.
0 commit comments