Skip to content

Commit

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

- name: Terraform init
id: init
run: terraform 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 fmt -check
id: fmt
Expand Down Expand Up @@ -145,7 +145,8 @@ jobs:

- name: Terraform init
id: init
run: terraform 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 }}

- name: terraform plan
Expand Down Expand Up @@ -231,7 +232,7 @@ jobs:

- name: Terraform Init
id: init
run: terraform 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 }}

- name: Terraform Validate
Expand Down

0 comments on commit 289d9d4

Please sign in to comment.