Skip to content

Commit

Permalink
require custom healthcheck for private registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Guslington committed Jun 5, 2019
1 parent 0d6f9f2 commit bbfc553
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ecs-service.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,11 @@
}],
RoutingPolicy: 'WEIGHTED'
})
HealthCheckConfig service_discovery['healthcheck'] if service_discovery.has_key? 'healthcheck'
if service_discovery.has_key? 'healthcheck'
HealthCheckConfig service_discovery['healthcheck']
else
HealthCheckCustomConfig ({ FailureThreshold: (service_discovery['failure_threshold'] || 1) })
end
}

registry[:RegistryArn] = FnGetAtt(:ServiceRegistry, :Arn)
Expand Down

0 comments on commit bbfc553

Please sign in to comment.