Codepipeline ECS Deploy stuck in "in progress"
I'm using as single task with two containers, each with it's own build and deploy pipeline.
The two containers have a delay of around 5 minutes between the deploy pipeline runs (build time).
I'm getting this container stuck in deploy for 1 hour in this state, then it fails. ( the container is deployed successfully ) just codepipeline doesn't know.
I'm guessing there is some sort of race condition happening, any ideas ?
Thank you.
Posted Feb 14, 2020, 8:55 AM UTC
11
Sounds like codepipeline is timing out on waiting for the container to launch / dial back to say its healthy.
Are you using an ALB with ecs to blue-green deploy?
You mention the container is deployed successfully - does the older container get decommissioned?
Also - double check that your healthcheck routes / settings are correct. Im wondering if your container is deploying but failing the healthcheck.