Skip to content

Commit

Permalink
Moved app related variables so that values are retrieved as an env va…
Browse files Browse the repository at this point in the history
…riable from Github.
  • Loading branch information
Ronaldo Macapobre committed Aug 6, 2024
1 parent 7f729ec commit 3ebdf3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/aws-template-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions infrastructure/cloud/environments/dev/dev.tfvars
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 0 additions & 3 deletions infrastructure/cloud/environments/sandbox/sandbox.tfvars
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 3ebdf3d

Please sign in to comment.