-
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 QueueProcessingFargateService #15636
Comments
Same problem for aws-cdk/packages/@aws-cdk/aws-ecs-patterns/lib/fargate/scheduled-fargate-task.ts Line 118 in 8668e15
|
Hey @paya-cz, sorry for the slow response Would you like to submit a PR for this feature request yourself? I can't guarantee anyone from the team will be able to tackle this anytime soon |
This issue seems to be somewhat related to #8320, perhaps both issues could be tackled at the same time one day. |
…reating QueueProcessingFargateService (#18219) The `QueueProcessingFargateService` construct internally creates a service Container with the default healthcheck that cannot currently be overriden by the user. This change allows users to optionally provide a custom healthcheck that can be passed on to the internal ECS container definition. fixes #15636 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…reating QueueProcessingFargateService (aws#18219) The `QueueProcessingFargateService` construct internally creates a service Container with the default healthcheck that cannot currently be overriden by the user. This change allows users to optionally provide a custom healthcheck that can be passed on to the internal ECS container definition. fixes aws#15636 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…reating QueueProcessingFargateService (aws#18219) The `QueueProcessingFargateService` construct internally creates a service Container with the default healthcheck that cannot currently be overriden by the user. This change allows users to optionally provide a custom healthcheck that can be passed on to the internal ECS container definition. fixes aws#15636 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
QueueProcessingFargateService
currently does not offerhealthCheck
options property, even though it is very simple to add it here:aws-cdk/packages/@aws-cdk/aws-ecs-patterns/lib/fargate/queue-processing-fargate-service.ts
Line 124 in 8668e15
So, there is no good way to set a
healthCheck
on a container.Use Case
I use healthcheck to make sure the tasks are healthy. Fargate ignores
HEALTHCHECK
instruction inDockerfile
, so I am forced to supply thehealthCheck
instruction via CDK. However,QueueProcessingFargateService
does not let me.Proposed Solution
Add a healthcheck property here:
aws-cdk/packages/@aws-cdk/aws-ecs-patterns/lib/fargate/queue-processing-fargate-service.ts
Line 10 in 8668e15
Pass it to the container here:
aws-cdk/packages/@aws-cdk/aws-ecs-patterns/lib/fargate/queue-processing-fargate-service.ts
Line 124 in 8668e15
Workaround
This is not nice, but works.
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: