From 6a226ace9d9cd430e8cf7698b29688f0991c57bc Mon Sep 17 00:00:00 2001
From: Nicolas De Loof <nicolas.deloof@gmail.com>
Date: Wed, 23 Sep 2020 16:02:44 +0200
Subject: [PATCH] disable LoadBalancer healthCheck

compose-spec only support command-based health check.
we need to investigate introducing URI-based health check support

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
---
 ecs/cloudformation.go | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/ecs/cloudformation.go b/ecs/cloudformation.go
index 68630e1a9..7a0228260 100644
--- a/ecs/cloudformation.go
+++ b/ecs/cloudformation.go
@@ -452,11 +452,12 @@ func createTargetGroup(project *types.Project, service types.ServiceConfig, port
 		port.Published,
 	)
 	template.Resources[targetGroupName] = &elasticloadbalancingv2.TargetGroup{
-		Port:       int(port.Target),
-		Protocol:   protocol,
-		Tags:       projectTags(project),
-		VpcId:      cloudformation.Ref(parameterVPCId),
-		TargetType: elbv2.TargetTypeEnumIp,
+		HealthCheckEnabled: false,
+		Port:               int(port.Target),
+		Protocol:           protocol,
+		Tags:               projectTags(project),
+		TargetType:         elbv2.TargetTypeEnumIp,
+		VpcId:              cloudformation.Ref(parameterVPCId),
 	}
 	return targetGroupName
 }