From 45f4be17149c555ce67c32467ee55a5bd8d75588 Mon Sep 17 00:00:00 2001 From: Daniel Hill Date: Wed, 16 Aug 2023 18:37:50 +0100 Subject: [PATCH] feat(portal): add environment to Portal container (#105) This can then be used in custom developer portals Signed-off-by: Daniel.Hill --- modules/ecs/main.tf | 1 + templates/ecs/kong_portal.tpl | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/modules/ecs/main.tf b/modules/ecs/main.tf index e178784..764ff02 100644 --- a/modules/ecs/main.tf +++ b/modules/ecs/main.tf @@ -138,6 +138,7 @@ resource "aws_ecs_task_definition" "kong" { kong_plugins = join(",", concat(["bundled"], var.kong_plugins)) entrypoint = var.entrypoint nginx_custom_config = base64encode(var.nginx_custom_config) + environment = var.environment }) : null tags = { diff --git a/templates/ecs/kong_portal.tpl b/templates/ecs/kong_portal.tpl index b2960cc..8a52fd7 100644 --- a/templates/ecs/kong_portal.tpl +++ b/templates/ecs/kong_portal.tpl @@ -13,6 +13,10 @@ "name": "AWS_REGION", "value": "${region}" }, + { + "name": "ENVIRONMENT", + "value": "${environment}" + }, { "name": "KONG_CLUSTER_MTLS", "value": "shared"