From e83562d0021b644c43d174a488d9e15e855cb9f8 Mon Sep 17 00:00:00 2001 From: Devin Lauderdale Date: Thu, 19 Oct 2023 13:02:05 -0500 Subject: [PATCH] add array index to fix bug in fallback value for container definitions argument --- ecs_task_definitions.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecs_task_definitions.tf b/ecs_task_definitions.tf index 23de36c..356bc0b 100644 --- a/ecs_task_definitions.tf +++ b/ecs_task_definitions.tf @@ -1,7 +1,7 @@ resource "aws_ecs_task_definition" "service" { family = var.service_name - container_definitions = var.container_definitions != null ? var.container_definitions : "[${module.service_container_definition.json_map_encoded}]" + container_definitions = var.container_definitions != null ? var.container_definitions : "[${module.service_container_definition[0].json_map_encoded}]" execution_role_arn = aws_iam_role.ecs_task_execution_role.arn task_role_arn = aws_iam_role.ecs_task_role.arn network_mode = "awsvpc"