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"