From 20b67b1f0230358f119859e819a7c12208f710bd Mon Sep 17 00:00:00 2001 From: Richard Pattinson Date: Wed, 16 Oct 2024 14:24:48 +0100 Subject: [PATCH] Configure preprod bigquery dataset name correctly --- terraform/aks/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/aks/variables.tf b/terraform/aks/variables.tf index 03cdcfc9..8ddb9976 100644 --- a/terraform/aks/variables.tf +++ b/terraform/aks/variables.tf @@ -155,7 +155,7 @@ locals { local.app_config, { BIGQUERY_PROJECT_ID = "teaching-qualifications", - BIGQUERY_DATASET = "ccbl_events_${var.environment}", + BIGQUERY_DATASET = var.environment == "preproduction" ? "ccbl_events_preprod" : "ccbl_events_${var.environment}", BIGQUERY_TABLE_NAME = "events", DB_SSLMODE = local.postgres_ssl_mode, HOSTING_ENVIRONMENT = var.environment,