From 4c7d85ddb734ebbf4d460cc4d3561de95771a374 Mon Sep 17 00:00:00 2001 From: adamlahbib Date: Wed, 20 Nov 2024 02:22:37 +0100 Subject: [PATCH] Refactor Terraform backend configuration in tf-drift-detection.yaml --- .github/workflows/tf-drift-detection.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tf-drift-detection.yaml b/.github/workflows/tf-drift-detection.yaml index 9127944..7d1f5f9 100644 --- a/.github/workflows/tf-drift-detection.yaml +++ b/.github/workflows/tf-drift-detection.yaml @@ -54,7 +54,11 @@ jobs: terraform_wrapper: false - name: Terraform Init - run: terraform init + run: | + terraform init \ + -backend-config="bucket=${TFSTATE_BUCKET}" \ + -backend-config="key=${TFSTATE_KEY}" \ + -backend-config="region=${AWS_REGION}" - name: Terraform Plan id: tfplan