ecs-patterns: When health check failed, ECS deployment stucks #24618
Replies: 2 comments 2 replies
-
This is an interesting idea. I believe this is the design from cloudformation that only successful health check makes a successful ecs service deployment, and the health check usually comes from the load balancer. I think this will need a lot of consideration about the design:
I am converting this to discussion and any more feedback with details are appreciated. |
Beta Was this translation helpful? Give feedback.
-
I'm working with ECS and it's awful. If there's the slightest problem with any of the containers, the entire deployment hangs. This can't be the way this is supposed to work? I also can't redeploy because the entire stack is in a stuck state. |
Beta Was this translation helpful? Give feedback.
-
Describe the feature
When deploying an ECS service using AWS CDK, the deployment process gets stuck until it times out if the health checks fail. This is causing issues in our deployment process and we would like to find a solution.
Use Case
Same as above
Proposed Solution
I propose creating a custom resource that monitors the deployment status of the ECS service and detects if the health checks fail. If the health checks fail, the custom resource will trigger a deployment error to prevent the deployment from stucking. By implementing this custom resource, we can ensure that failed health checks do not cause our deployment process to stall indefinitely.
Other Information
No response
Acknowledgements
CDK version used
2.68.0
Environment details (OS name and version, etc.)
m1 mac
Beta Was this translation helpful? Give feedback.
All reactions