diff --git a/clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/deploy/ops/ResizeServiceAtomicOperation.java b/clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/deploy/ops/ResizeServiceAtomicOperation.java index dc298bb2f37..a7eda13524e 100644 --- a/clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/deploy/ops/ResizeServiceAtomicOperation.java +++ b/clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/deploy/ops/ResizeServiceAtomicOperation.java @@ -82,8 +82,8 @@ private void resizeAutoScalingGroup(Service service) { .withScalableDimension(ScalableDimension.EcsServiceDesiredCount) .withResourceId(String.format("service/%s/%s", ecsClusterName, service.getServiceName())) .withRoleARN(service.getRoleArn()) - .withMinCapacity(0) - .withMaxCapacity(desiredCount); + .withMinCapacity(description.getCapacity().getMin()) + .withMaxCapacity(description.getCapacity().getMax()); updateTaskStatus(String.format("Resizing Scalable Target of %s to %s instances", service.getServiceName(), desiredCount)); autoScalingClient.registerScalableTarget(request);