Is it possible to scale AWS ECS tasks based on an external parameter?
I have hosted a service on AWS ECS and it is running with 2 ECS tasks. I want to scale-out the tasks based on some count that I get from a different service.
Would it possible for AWS ECS to scale the tasks based on the count that is returned from an external parameter/service?
Where do I have to publish this count to auto scale the containers?
CodePudding user response:
Yes, you can do this through Application Auto Scaling for ECS. Specifically you can setup target tracking scaling policy with a custom CloudWatch metric.
So basically, you would have to create a custom metric based on the data from the external provider.