We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22cca64 commit 806e47cCopy full SHA for 806e47c
operations/deployment/terraform/modules/aws/ecs/aws_ecs.tf
@@ -34,7 +34,7 @@ resource "aws_ecs_task_definition" "ecs_task" {
34
execution_role_arn = local.ecsTaskExecutionRole
35
36
container_definitions = sensitive(jsonencode(
37
- compact([ # compact removes null entries
+ [
38
{
39
"name": var.aws_ecs_task_name != "" ? local.aws_ecs_task_name[count.index] : "${local.aws_ecs_task_name[count.index]}${count.index}",
40
"image": local.aws_ecs_app_image[count.index],
@@ -82,7 +82,7 @@ resource "aws_ecs_task_definition" "ecs_task" {
82
"type": "fluentbit"
83
}
84
} : null
85
- ])
+ ]
86
))
87
88
0 commit comments