Skip to content

Commit

Permalink
deploy/tf: fix container health check
Browse files Browse the repository at this point in the history
allow null
  • Loading branch information
digorgonzola committed Dec 19, 2023
1 parent dfad7a7 commit 42b2d08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/tf/service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ locals {
"${var.ecr_registry}/${var.ecr_repository}@${var.image}" :
"${var.ecr_registry}/${var.ecr_repository}:${var.image}"
)
health_check = {
command = length(var.app_health_check) > 0 ? split(",", var.app_health_check) : []
}
health_check = length(var.app_health_check) > 0 ? {
command = split(",", var.app_health_check)
} : {}
readonly_root_filesystem = false
essential = true
memory_reservation = 256
Expand Down

0 comments on commit 42b2d08

Please sign in to comment.