From d1ee7cbf485ee5aa78313d2cc255c7ba1e82ab40 Mon Sep 17 00:00:00 2001 From: Jarrod Lowe Date: Sat, 10 Aug 2024 13:47:23 +1200 Subject: [PATCH] more test workflaow --- .github/workflows/environment-test.yaml | 3 +++ terraform/environment/github/main.tf | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/environment-test.yaml b/.github/workflows/environment-test.yaml index d29ca319..311361cb 100644 --- a/.github/workflows/environment-test.yaml +++ b/.github/workflows/environment-test.yaml @@ -36,3 +36,6 @@ jobs: aws_region="${{ vars.AWS_REGION }}" state_bucket="${{ vars.STATE_BUCKET }}" environment="${{ vars.ENVIRONMENT }}" + backend_config: + state_bucket="${{ vars.STATE_BUCKET }}" + environment="${{ vars.ENVIRONMENT }}" diff --git a/terraform/environment/github/main.tf b/terraform/environment/github/main.tf index f5c6dd41..31e655c2 100644 --- a/terraform/environment/github/main.tf +++ b/terraform/environment/github/main.tf @@ -24,8 +24,6 @@ variable "environment" { terraform { backend "s3" { - bucket = var.state_bucket - key = "${var.environment}/terraform.tfstate" region = var.aws_region } }