diff --git a/terraform/environments/scripts/create-or-update-env.sh b/terraform/environments/scripts/create-or-update-env.sh index 89d2951406f8c790079204b1a0fe0d1308130939..0a0e9df84968a168a5b6416f31f29335fa8c333c 100755 --- a/terraform/environments/scripts/create-or-update-env.sh +++ b/terraform/environments/scripts/create-or-update-env.sh @@ -13,6 +13,6 @@ TAG=$2 TF_LOG_PATH=terraform-init.log terraform init TF_LOG_PATH=terraform-version.log terraform version -TF_LOG_PATH=terraform-workspace.log terraform workspace new "$WORKSPACE" || terraform workspace select "$WORKSPACE" +TF_LOG_PATH=terraform-workspace.log terraform workspace select -or-create=true "$WORKSPACE" TF_LOG_PATH=terraform-plan.log terraform plan -var="image_tag=$TAG" -out plan -no-color | tee tfplan.plain TF_LOG_PATH=terraform-apply.log terraform apply -auto-approve -parallelism=50 plan \ No newline at end of file