From 8d970a2dabc0082094a80281d824b7375e548680 Mon Sep 17 00:00:00 2001 From: adamlahbib Date: Fri, 15 Nov 2024 22:22:19 +0100 Subject: [PATCH] Update terraform action.yaml files --- .github/actions/terraform-apply/action.yaml | 5 ++--- .github/actions/terraform-destroy/action.yaml | 5 ++--- .github/actions/terraform-plan/action.yaml | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/actions/terraform-apply/action.yaml b/.github/actions/terraform-apply/action.yaml index e2cbbb1..4acb8eb 100644 --- a/.github/actions/terraform-apply/action.yaml +++ b/.github/actions/terraform-apply/action.yaml @@ -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 }} diff --git a/.github/actions/terraform-destroy/action.yaml b/.github/actions/terraform-destroy/action.yaml index b2a6358..419d05b 100644 --- a/.github/actions/terraform-destroy/action.yaml +++ b/.github/actions/terraform-destroy/action.yaml @@ -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 }} diff --git a/.github/actions/terraform-plan/action.yaml b/.github/actions/terraform-plan/action.yaml index 5cce044..fdc3fdc 100644 --- a/.github/actions/terraform-plan/action.yaml +++ b/.github/actions/terraform-plan/action.yaml @@ -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 }}