I have an ECS Cluster with ASG Capacity Provider as well as blue/green deploys enabled. However, when I initiate a blue/green deploy via codedeploy and there is not enough capacity left on the EC2 instance, the codedeploy deployment fails due to insufficient capacity on the EC2 instance. Moreover, the capacity provider does not do its job and scale out the ASG desired capacity to cater for codedeploy jobs.
Event message for the ECS service states service configuration was unable to place a task because no container instance met all of its requirements. The closest matching container-instance 33398145d2f442dbb20b57c964a03e6c has insufficient memory available. For more information, see the Troubleshooting section.
I hit the same issue with rolling update deployment services as well. Pre-existing services with service autoscaling in place does not affect capacity provider metric at all. I figured service has to be recreated and then it automatically gets Capacity provider strategy field (and loses EC2/Fargate radios).
That might be good info to add somewhere in documentation that existing services has to be recreated.
However, it is impossible to create Blue/Green deployment service in cluster with enabled capacity provider. I was not able to find that in any docs either.
@kkopachev You can update a service using the rolling update controller to use capacity providers. However you are correct that blue/green is not supported at this time.
@kkopachev I have recreated the service and the field appeared, but still I get the same error and not auto scaling of ec2 instances...
See my detailed explanation here - https://github.com/aws/containers-roadmap/issues/76#issuecomment-578439351
any updates on when can expect this to be solved?
This is so badly needed!
Any update? This is affecting us as well.
From https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html:
Cluster capacity providers are not supported when using the blue/green deployment type.
Given how much of a game changer ECS cluster autoscaling and blue/green deploys are individually, it would be amazing to be able to use them together. Does the team have an estimate as to time of completion (I'm seeing this as labeled Work in Progress)? Thank you! 馃檹
Pinging @srrengar since he self-assigned this.
Please implement this as we are apparently unable to use Fargate Spot capacity otherwise (which would save us $$$).
Closing this in favor of #713
Most helpful comment
Please implement this as we are apparently unable to use Fargate Spot capacity otherwise (which would save us $$$).