Skip to content

Commit

Permalink
fix(ci): fix deploy-aws workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-h1 committed Aug 28, 2024
1 parent 289d9d4 commit 7b11090
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ jobs:

- name: Terraform init
id: init
working-directory: ${{ env.TERRAFORM_ROOT }}
run: |
terraform init -backend-config="key=vpc/${{ env.TF_VAR_env }}.tfstate" -backend-config="bucket=pets-api-${{ env.TF_VAR_env }}-terraform-state" -input=false working-directory: ${{ env.TERRAFORM_ROOT }}
terraform init -backend-config="key=vpc/${{ env.TF_VAR_env }}.tfstate" -backend-config="bucket=pets-api-${{ env.TF_VAR_env }}-terraform-state" -input=false
- name: Terraform fmt -check
id: fmt
Expand Down Expand Up @@ -145,9 +146,9 @@ jobs:

- name: Terraform init
id: init
working-directory: ${{ env.TERRAFORM_ROOT }}
run: |
terraform init -backend-config="key=vpc/${{ env.TF_VAR_env }}.tfstate" -backend-config="bucket=pets-api-${{ env.TF_VAR_env }}-terraform-state" -input=false
working-directory: ${{ env.TERRAFORM_ROOT }}
- name: terraform plan
id: plan
Expand Down Expand Up @@ -232,8 +233,8 @@ jobs:

- name: Terraform Init
id: init
run: terraform init -backend-config="key=vpc/${{ env.TF_VAR_env }}.tfstate" -backend-config="bucket=pets-api-${{ env.TF_VAR_env }}-terraform-state" -input=false
working-directory: ${{ env.TERRAFORM_ROOT }}
run: terraform init -backend-config="key=vpc/${{ env.TF_VAR_env }}.tfstate" -backend-config="bucket=pets-api-${{ env.TF_VAR_env }}-terraform-state" -input=false

- name: Terraform Validate
id: validate
Expand Down

0 comments on commit 7b11090

Please sign in to comment.