Search code examples
amazon-web-servicesdockermicroservicesscaleamazon-ecs

How to scale Docker containers hosted on AWS ECS programmatically?


I have created a microservice cluster on AWS ECS with four microservices, each one with its Docker images. But looking in the ESC cli I cannot find a way to scale these images.

My goal is to create an application responsible to scale this microservice, but I could not find a way to execute it, does anyone has any clue how can I scale the images?

Thanks.


Solution

  • You need to change the "desired count" in the ECS service. You would do this programmatically through the UpdateService API.