diff --git a/ecs.tf b/ecs.tf index fc2463d..c822909 100644 --- a/ecs.tf +++ b/ecs.tf @@ -11,7 +11,7 @@ resource "aws_ecs_task_definition" "task" { essential = true memoryReservation = var.docker_memory_reservation linuxParameters = local.docker_linux_params - entrypoint = var.enable_exec ? var.entrypoint : null + entrypoint = var.entrypoint portMappings = [{ containerPort = var.app_port hostPort = var.host_port diff --git a/variables.tf b/variables.tf index f5d216e..acba252 100644 --- a/variables.tf +++ b/variables.tf @@ -311,8 +311,9 @@ variable "enable_exec" { } variable "entrypoint" { - description = "The entry point that's passed to the container. Use [ \"sleep\", \"60\" ], when enabling exec command" - default = "" + description = "The entry point that's passed to the container." + type = list(string) + default = [] } variable "secrets" {