Skip to content

Commit

Permalink
Update terraform action.yaml files to configure backend for S3 storage
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlahbib committed Nov 15, 2024
1 parent 80b6e96 commit e490525
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/actions/terraform-apply/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ runs:
path: ./terraform
var_file: ./terraform/stages/${{ inputs.stage }}.tfvars
backend_config: >
bucket = ${{ inputs.tfstate-bucket }}
key = ${{ inputs.tfstate-key }}
region = ${{ inputs.aws-region }}
encrypt = true
auto-approve: true
bucket=${{ inputs.tfstate-bucket }},
key=${{ inputs.tfstate-key }},
region=${{ inputs.aws-region }},
encrypt=true
auto_approve: true

- name: Export Terraform Outputs
shell: bash
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/terraform-destroy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ runs:
path: ./terraform
var_file: ./terraform/stages/${{ inputs.stage }}.tfvars
backend_config: >
bucket = ${{ inputs.tfstate-bucket }}
key = ${{ inputs.tfstate-key }}
region = ${{ inputs.aws-region }}
encrypt = true
bucket=${{ inputs.tfstate-bucket }},
key=${{ inputs.tfstate-key }},
region=${{ inputs.aws-region }},
encrypt=true
8 changes: 4 additions & 4 deletions .github/actions/terraform-plan/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ runs:
path: ./terraform
var_file: ./terraform/stages/${{ inputs.stage }}.tfvars
backend_config: >
bucket = ${{ inputs.tfstate-bucket }}
key = ${{ inputs.tfstate-key }}
region = ${{ inputs.aws-region }}
encrypt = true
bucket=${{ inputs.tfstate-bucket }},
key=${{ inputs.tfstate-key }},
region=${{ inputs.aws-region }},
encrypt=true

0 comments on commit e490525

Please sign in to comment.