-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@aws-cdk/aws-ecs-patterns: Add ability to set healthCheck for NetworkLoadBalancedFargateService #20233
Comments
exposes a healthcheck prop in the NetworkLoadBalancedFargateService ecs pattern that is passed through to the underlying TaskDefinition resource. Allows users to specify a custom health check for the Fargate containers fixes: aws#20233
exposes a healthcheck prop in the NetworkLoadBalancedFargateService ecs pattern that is passed through to the underlying TaskDefinition resource. Allows users to specify a custom health check for the Fargate containers fixes: aws#20233
exposes a healthcheck prop in the NetworkLoadBalancedFargateService ecs pattern that is passed through to the underlying TaskDefinition resource. Allows users to specify a custom health check for the Fargate containers fixes: aws#20233
Saw the issue yesterday myself too! How do we +1 :) |
We accept contributions and would be happy to review a PR for this! |
pasting my response on the linked PR After thinking about this more, I'm not sure we should expose this on the top level props. For an ECS service there behind a load balancer there are two different types of health checks that you can use.
I'm not sure this is a common use case for services running behind an ELB. The other linked PR that implemented this for the QueueProcessing service makes more sense because it is a worker service that is not running behind an ELB so container health checks are the only type of health check available. I think in the majority of cases the user wants to configure the ELB health check and exposing this at the top level (an not the elb health check) would lead to more confusion and users configuring container health checks when they don't need to. cc @madeline-k for a second opinion. I'll leave this open for a little while for comments. |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Any updates ? |
Describe the feature
The
QueueProcessingFargateService
pattern provides the capability to supply a container health check directly as a prop. Would be great to have a similar prop forNetworkLoadBalancedFargateService
so we can define container level health checks without needing to reconstruct the whole task definition from scratch:Corresponding issue where it was added to
QueueProcessingFargateService
: #15636Use Case
Need to add a
healthcheck
to ensure tasks are healthy and can be scheduled and run by ECS. The pattern construct doesn't allow passing one in forcing all tasks to always reportHealthStatus: Unknown
Proposed Solution
Exactly the same as one applied here #18219 but in the
NetworkLoadBalancedFargateService
pattern:aws-cdk/packages/@aws-cdk/aws-ecs-patterns/lib/fargate/network-load-balanced-fargate-service.ts
Line 131 in 8668e15
Other Information
Using escape hatch:
Acknowledgements
CDK version used
1.153.0 (build 7d90993)
Environment details (OS name and version, etc.)
MacOS Monterrey 12.3.1
The text was updated successfully, but these errors were encountered: