Set FailureThreshold
@@ -298,6 +298,9 @@ func (c client) createServiceRegistry(service types.ServiceConfig, template *clo
template.Resources[serviceRegistration] = &cloudmap.Service{
Description: fmt.Sprintf("%q service discovery entry in Cloud Map", service.Name),
HealthCheckConfig: healthCheck,
+ HealthCheckCustomConfig: &cloudmap.Service_HealthCheckCustomConfig{
+ FailureThreshold: 1,
+ },
Name: service.Name,
NamespaceId: cloudformation.Ref("CloudMap"),
DnsConfig: &cloudmap.Service_DnsConfig{
