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>
This commit is contained in:
Nicolas De Loof 2020-09-23 16:02:44 +02:00
parent d57a39958b
commit 6a226ace9d
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E

View File

@ -452,11 +452,12 @@ func createTargetGroup(project *types.Project, service types.ServiceConfig, port
port.Published, port.Published,
) )
template.Resources[targetGroupName] = &elasticloadbalancingv2.TargetGroup{ template.Resources[targetGroupName] = &elasticloadbalancingv2.TargetGroup{
Port: int(port.Target), HealthCheckEnabled: false,
Protocol: protocol, Port: int(port.Target),
Tags: projectTags(project), Protocol: protocol,
VpcId: cloudformation.Ref(parameterVPCId), Tags: projectTags(project),
TargetType: elbv2.TargetTypeEnumIp, TargetType: elbv2.TargetTypeEnumIp,
VpcId: cloudformation.Ref(parameterVPCId),
} }
return targetGroupName return targetGroupName
} }