From 14723630a71c4861281c6368a2429af82fc5cdc8 Mon Sep 17 00:00:00 2001 From: Ryan Eskin Date: Tue, 5 Mar 2024 13:00:47 -0500 Subject: [PATCH 1/2] allow the addition of additional containers --- modules/gateway-task/main.tf | 1 + modules/gateway-task/variables.tf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/modules/gateway-task/main.tf b/modules/gateway-task/main.tf index 8b4e4b0b..b3126446 100644 --- a/modules/gateway-task/main.tf +++ b/modules/gateway-task/main.tf @@ -206,6 +206,7 @@ resource "aws_ecs_task_definition" "this" { container_definitions = jsonencode( flatten( concat( + var.extra_container_definitions, [ local.finalized_mesh_init_container_definition, { diff --git a/modules/gateway-task/variables.tf b/modules/gateway-task/variables.tf index ff1de19d..8a63ce9a 100644 --- a/modules/gateway-task/variables.tf +++ b/modules/gateway-task/variables.tf @@ -435,3 +435,8 @@ variable "exclude_uids" { type = list(string) default = [] } + +variable "extra_container_definitions" { + type = any + description = "Any extra containers to add to the gateway task" +} From 15e07c5d3bea69be22f0d5b3c284ac2ec854ed11 Mon Sep 17 00:00:00 2001 From: Ryan Eskin Date: Tue, 5 Mar 2024 13:04:20 -0500 Subject: [PATCH 2/2] update variable to have a default --- modules/gateway-task/variables.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gateway-task/variables.tf b/modules/gateway-task/variables.tf index 8a63ce9a..507fe5ee 100644 --- a/modules/gateway-task/variables.tf +++ b/modules/gateway-task/variables.tf @@ -439,4 +439,5 @@ variable "exclude_uids" { variable "extra_container_definitions" { type = any description = "Any extra containers to add to the gateway task" + default = [] }