Skip to content

Commit 3beedb4

Browse files
committed
fix: Set logConfiguration to null if empty to prevent ECS errors
1 parent 52469ed commit 3beedb4

File tree

1 file changed

+1
-1
lines changed
  • modules/container-definition

1 file changed

+1
-1
lines changed

modules/container-definition/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ locals {
4747
interactive = var.interactive
4848
links = local.is_not_windows ? var.links : null
4949
linuxParameters = local.is_not_windows ? { for k, v in local.linuxParameters : k => v if v != null } : null
50-
logConfiguration = local.logConfiguration
50+
logConfiguration = length(local.logConfiguration) > 0 ? local.logConfiguration : null
5151
memory = var.memory
5252
memoryReservation = var.memoryReservation
5353
mountPoints = var.mountPoints

0 commit comments

Comments
 (0)