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..507fe5ee 100644 --- a/modules/gateway-task/variables.tf +++ b/modules/gateway-task/variables.tf @@ -435,3 +435,9 @@ variable "exclude_uids" { type = list(string) default = [] } + +variable "extra_container_definitions" { + type = any + description = "Any extra containers to add to the gateway task" + default = [] +}