Skip to content

Commit a18f436

Browse files
ghaddowmarcincuber
authored andcommitted
Feature/healthcheck grace fix (#7)
* doh! * allow toggling of loadbalancing * remove healthcheck grace period when not load balanced
1 parent 1108893 commit a18f436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ resource "aws_ecs_service" "service" {
173173
launch_type = "FARGATE"
174174
deployment_minimum_healthy_percent = var.deployment_minimum_healthy_percent
175175
deployment_maximum_percent = var.deployment_maximum_percent
176-
health_check_grace_period_seconds = var.health_check_grace_period_seconds
176+
health_check_grace_period_seconds = var.load_balanced ? var.health_check_grace_period_seconds : null
177177

178178
network_configuration {
179179
subnets = var.private_subnet_ids

0 commit comments

Comments
 (0)