diff --git a/.github/workflows/ecs_deployment_apply.yaml b/.github/workflows/ecs_deployment_apply.yaml index 6ee9ad09..c409543d 100644 --- a/.github/workflows/ecs_deployment_apply.yaml +++ b/.github/workflows/ecs_deployment_apply.yaml @@ -10,10 +10,8 @@ on: workspace: description: "The workspace to terraform against" required: true - type: choice - options: - - " " - - prod + type: string + default: "dev" concurrency: group: ${{ github.event.inputs.workspace }}-terraform @@ -24,7 +22,7 @@ permissions: contents: read env: - workspace: ${{ github.event.inputs.workspace }} + workspace: dev terraform_action: apply jobs: @@ -43,7 +41,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Terraform - uses: hashicorp/setup-terraform@v3 + uses: hashicorp/setup-terraform@v3.1.2 with: terraform_version: "1.9.8" @@ -60,7 +58,7 @@ jobs: DYNAMODB_TABLE: ${{ secrets.TFSTATE_DYNAMODB_TABLE }} OWNER: ${{ vars.OWNER }} PROJECT: ${{ vars.PROJECT }} - REGION: ${{ vars.AWS_REGION }} + REGION: ${{ vars.region }} WORKSPACE: ${{ env.workspace }} UMLS_API_KEY: ${{ secrets.UMLS_API_KEY }} ERSD_API_KEY: ${{ secrets.ERSD_API_KEY}} @@ -71,7 +69,7 @@ jobs: echo "owner = \"$OWNER\"" >> $WORKSPACE.tfvars echo "project = \"$PROJECT\"" >> $WORKSPACE.tfvars echo "region = \"$REGION\"" >> $WORKSPACE.tfvars - terraform init \ + terraform init -reconfigure \ -var-file="$WORKSPACE.tfvars" \ -backend-config "bucket=$BUCKET" \ -backend-config "dynamodb_table=$DYNAMODB_TABLE" \