From 3ebdf3dfa4f52419ccde4314fc2387e7a02944d0 Mon Sep 17 00:00:00 2001 From: Ronaldo Macapobre Date: Tue, 6 Aug 2024 17:13:31 +0000 Subject: [PATCH] Moved app related variables so that values are retrieved as an env variable from Github. --- .github/workflows/aws-template-terraform.yml | 4 ++++ infrastructure/cloud/environments/dev/dev.tfvars | 3 --- infrastructure/cloud/environments/sandbox/sandbox.tfvars | 3 --- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/aws-template-terraform.yml b/.github/workflows/aws-template-terraform.yml index 477c1ea3..db6db7d0 100644 --- a/.github/workflows/aws-template-terraform.yml +++ b/.github/workflows/aws-template-terraform.yml @@ -57,6 +57,10 @@ jobs: runs-on: ubuntu-latest environment: name: ${{ inputs.ENVIRONMENT_NAME }} + env: + TF_VAR_app_name: ${{ vars.APP_NAME }} + TF_VAR_environment: ${{ vars.ENVIRONMENT_NAME }} + TF_VAR_kms_key_name: ${{ vars.KMS_KEY_NAME }} needs: [check_changes] steps: - name: Checkout repository diff --git a/infrastructure/cloud/environments/dev/dev.tfvars b/infrastructure/cloud/environments/dev/dev.tfvars index 18c4dec8..3e76a60f 100644 --- a/infrastructure/cloud/environments/dev/dev.tfvars +++ b/infrastructure/cloud/environments/dev/dev.tfvars @@ -1,5 +1,2 @@ -app_name = "jasper" -environment = "dev" -kms_key_name = "jasper-kms-key" region = "ca-central-1" test_s3_bucket_name = "test-s3-bucket" diff --git a/infrastructure/cloud/environments/sandbox/sandbox.tfvars b/infrastructure/cloud/environments/sandbox/sandbox.tfvars index 1497bf2d..3e76a60f 100644 --- a/infrastructure/cloud/environments/sandbox/sandbox.tfvars +++ b/infrastructure/cloud/environments/sandbox/sandbox.tfvars @@ -1,5 +1,2 @@ -app_name = "jasper" -environment = "snd" -kms_key_name = "jasper-kms-key" region = "ca-central-1" test_s3_bucket_name = "test-s3-bucket"