From 40b6d17735f0aee8a873e4008ad4f07b014d61d9 Mon Sep 17 00:00:00 2001 From: Peter Dudfield <34686298+peterdudfield@users.noreply.github.com> Date: Tue, 14 Jan 2025 16:12:45 +0000 Subject: [PATCH] add env to api on dev and pro (#736) --- terraform/nowcasting/development/main.tf | 1 + terraform/nowcasting/production/main.tf | 1 + 2 files changed, 2 insertions(+) diff --git a/terraform/nowcasting/development/main.tf b/terraform/nowcasting/development/main.tf index 74050e1c..3233bf2c 100644 --- a/terraform/nowcasting/development/main.tf +++ b/terraform/nowcasting/development/main.tf @@ -108,6 +108,7 @@ module "api" { { "name" : "AUTH0_CLIENT_ID", "value" : var.auth_dashboard_client_id }, { "name" : "ADJUST_MW_LIMIT", "value" : "1000" }, { "name" : "N_HISTORY_DAYS", "value" : "2" }, + { "name" : "ENVIRONMENT", "value" : local.environment }, ] container-name = "nowcasting_api" container-tag = var.api_version diff --git a/terraform/nowcasting/production/main.tf b/terraform/nowcasting/production/main.tf index bd5e5b03..0e6b8f23 100644 --- a/terraform/nowcasting/production/main.tf +++ b/terraform/nowcasting/production/main.tf @@ -106,6 +106,7 @@ module "api" { { "name" : "AUTH0_CLIENT_ID", "value" : var.auth_dashboard_client_id }, { "name" : "ADJUST_MW_LIMIT", "value" : "1000" }, { "name" : "N_HISTORY_DAYS", "value" : "2" }, + { "name" : "ENVIRONMENT", "value" : local.environment }, ] container-name = "nowcasting_api" container-tag = var.api_version