Skip to content

Commit

Permalink
Update terraform action.yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlahbib committed Nov 15, 2024
1 parent 7c2b407 commit 8d970a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/actions/terraform-apply/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ runs:
uses: dflook/terraform-apply@v1
with:
path: ./terraform
var_file:
- ./terraform/stages/${{ inputs.stage }}.tfvars
backend_config: |
var_file: ./terraform/stages/${{ inputs.stage }}.tfvars
backend_config: >
bucket = ${{ inputs.tfstate-bucket }}
key = ${{ inputs.tfstate-key }}
region = ${{ inputs.aws-region }}
Expand Down
5 changes: 2 additions & 3 deletions .github/actions/terraform-destroy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ runs:
uses: dflook/terraform-destroy@v1
with:
path: ./terraform
var_file:
- ./terraform/stages/${{ inputs.stage }}.tfvars
backend_config: |
var_file: ./terraform/stages/${{ inputs.stage }}.tfvars
backend_config: >
bucket = ${{ inputs.tfstate-bucket }}
key = ${{ inputs.tfstate-key }}
region = ${{ inputs.aws-region }}
Expand Down
5 changes: 2 additions & 3 deletions .github/actions/terraform-plan/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ runs:
uses: dflook/terraform-plan@v1
with:
path: ./terraform
var_file:
- ./terraform/stages/${{ inputs.stage }}.tfvars
backend_config: |
var_file: ./terraform/stages/${{ inputs.stage }}.tfvars
backend_config: >
bucket = ${{ inputs.tfstate-bucket }}
key = ${{ inputs.tfstate-key }}
region = ${{ inputs.aws-region }}
Expand Down

0 comments on commit 8d970a2

Please sign in to comment.