Skip to content

Commit

Permalink
Update entrypoint (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiPrasannaGopularam authored Jul 12, 2024
1 parent d6f080a commit a8b5a9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit a8b5a9d

Please sign in to comment.