Closed tom-256 closed 4 months ago
I created a draft PR https://github.com/pipe-cd/pipecd/pull/5030 to solve it. After testing, I'll make it ready for review.
That will enable you to ignore desiredCount
on updating a service by a new config attribute ignoreDesiredCountOnUpdate
.
Of course, desiredCount
will be ignored while ECS's DriftDetection(In Progress feature yet).
Another way I did not choose
Another way is to make it possible to configure autoscaling in PipeCD. (e.g. by introducing a new definition file)
It is tougher to develop because:
If required, we can discuss how to manage autoscaling in PipeCD here: https://github.com/pipe-cd/pipecd/discussions/4709.
What would you like to be added: When using Application AutoScaling in ECS, ignore desiredCount parameter.
Why is this needed:
If the number of desredCounts is less than the running desiredCount at the time of deployment, a failure will occur because
In general, ECS is often used in conjunction with application autoscaling, so it is expensive to compare the current value with the running value at the time of deploying.
For example, Terraform allows you to ignore settings https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/master/docs/README.md#service-1