From 7b110903314908a292d6ce7dc9ee69d144a932a4 Mon Sep 17 00:00:00 2001 From: luke-h1 Date: Wed, 28 Aug 2024 16:43:35 +0100 Subject: [PATCH] fix(ci): fix deploy-aws workflow --- .github/workflows/deploy-aws.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-aws.yml b/.github/workflows/deploy-aws.yml index f9eaa84..75acf82 100644 --- a/.github/workflows/deploy-aws.yml +++ b/.github/workflows/deploy-aws.yml @@ -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 @@ -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 @@ -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