From f42983c2ce25fb2d5854266c32376722d4090ba0 Mon Sep 17 00:00:00 2001 From: bidetzz Date: Thu, 12 Sep 2024 12:23:36 -0400 Subject: [PATCH] Set ASP.NET Core runtime environment (#251) --- modules/unreal/horde/ecs.tf | 4 ++++ modules/unreal/horde/variables.tf | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/unreal/horde/ecs.tf b/modules/unreal/horde/ecs.tf index 69d6b8d2..881fce4e 100644 --- a/modules/unreal/horde/ecs.tf +++ b/modules/unreal/horde/ecs.tf @@ -87,6 +87,10 @@ resource "aws_ecs_task_definition" "unreal_horde_task_definition" { name = "Horde__adminClaimValue" value = var.admin_claim_value }, + { + name = "ASPNETCORE_ENVIRONMENT" + value = var.environment + } ] logConfiguration = { logDriver = "awslogs" diff --git a/modules/unreal/horde/variables.tf b/modules/unreal/horde/variables.tf index 41f45d1f..3309833a 100644 --- a/modules/unreal/horde/variables.tf +++ b/modules/unreal/horde/variables.tf @@ -21,8 +21,8 @@ variable "project_prefix" { variable "environment" { type = string - description = "The current environment (e.g. dev, prod, etc.)" - default = "dev" + description = "The current environment (e.g. Development, Staging, Production, etc.). This will tag ressources and set ASPNETCORE_ENVIRONMENT variable." + default = "Development" } variable "tags" {