From a8b5a9d6d488a70722564e8049e4ee7c593710f5 Mon Sep 17 00:00:00 2001 From: SaiPrasannaGopularam <110479454+SaiPrasannaGopularam@users.noreply.github.com> Date: Fri, 12 Jul 2024 09:42:10 -0400 Subject: [PATCH] Update entrypoint (#42) --- ecs.tf | 2 +- variables.tf | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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" {