Skip to content

Commit

Permalink
Introduce var.environment_short_name as a workaround to preprod/prepr…
Browse files Browse the repository at this point in the history
…oduction ambiguity
  • Loading branch information
steventux committed Apr 9, 2024
1 parent 583c15e commit eda12c3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions terraform/aks/config/preproduction.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cluster_name": "s189t01-tsc-test-aks",
"namespace": "tra-test",
"environment": "preproduction",
"environment_short_name": "preprod",
"deploy_azure_backing_services": true,
"key_vault_name": "s189t01-ccbl-pp-kv",
"key_vault_app_secret_name": "CCBL-APP-SECRETS-PREPRODUCTION",
Expand Down
1 change: 1 addition & 0 deletions terraform/aks/config/production.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cluster_name": "s189p01-tsc-production-aks",
"namespace": "tra-production",
"environment": "production",
"environment_short_name": "production",
"deploy_azure_backing_services": true,
"key_vault_name": "s189p01-ccbl-pd-kv",
"key_vault_app_secret_name": "CCBL-APP-SECRETS-PRODUCTION",
Expand Down
1 change: 1 addition & 0 deletions terraform/aks/config/review.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cluster_name": "s189t01-tsc-test-aks",
"namespace": "tra-development",
"environment": "review",
"environment_short_name": "review",
"deploy_azure_backing_services": false,
"enable_postgres_ssl": false,
"key_vault_name": "s189t01-ccbl-rv-kv",
Expand Down
1 change: 1 addition & 0 deletions terraform/aks/config/test.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cluster_name": "s189t01-tsc-test-aks",
"namespace": "tra-development",
"environment": "test",
"environment_short_name": "test",
"deploy_azure_backing_services": true,
"key_vault_name": "s189t01-ccbl-ts-kv",
"key_vault_app_secret_name": "CCBL-APP-SECRETS-TEST",
Expand Down
2 changes: 1 addition & 1 deletion terraform/aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ locals {
local.app_config,
{
BIGQUERY_PROJECT_ID = "teaching-qualifications",
BIGQUERY_DATASET = "ccbl_events_${var.environment}",
BIGQUERY_DATASET = "ccbl_events_${var.environment_short_name}",
BIGQUERY_TABLE_NAME = "events",
DB_SSLMODE = local.postgres_ssl_mode,
HOSTING_ENVIRONMENT = var.environment,
Expand Down

0 comments on commit eda12c3

Please sign in to comment.