Skip to content

Commit

Permalink
update default values and terraform init
Browse files Browse the repository at this point in the history
  • Loading branch information
shanice-skylight committed Jan 3, 2025
1 parent b8b71f8 commit a94917b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ecs_deployment_apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +22,7 @@ permissions:
contents: read

env:
workspace: ${{ github.event.inputs.workspace }}
workspace: dev
terraform_action: apply

jobs:
Expand All @@ -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"

Expand All @@ -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}}
Expand All @@ -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" \
Expand Down

0 comments on commit a94917b

Please sign in to comment.