https://pulumi.com logo
Title
p

polite-continent-12996

08/10/2021, 9:25 PM
Is there documentation on how to scale ECS fargate tasks? or is this done automatically?
p

polite-continent-12996

08/10/2021, 9:30 PM
Thanks for that, I was actually meaning for Pulumi. Is there a way to do it using that?
g

great-sunset-355

08/10/2021, 9:42 PM
you should be able to find all necessary components either in either awsx https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/awsx/ecs/ or https://www.pulumi.com/docs/reference/pkg/aws/ecs/
also checkout https://github.com/pulumi/examples has plenty of basic examples, usually good enough to get started
p

proud-art-41399

08/11/2021, 6:01 AM
First you need to create an app autoscaling target (https://www.pulumi.com/docs/reference/pkg/aws/appautoscaling/target/#ecs-service-autoscaling) which in your case will be an ECS service. Then you need to define the autoscaling policy (https://www.pulumi.com/docs/reference/pkg/aws/appautoscaling/policy/#ecs-service-autoscaling). AFAIK there's no example in pulumi/examples but I can provide one if you won't be able to come up with the solution from the examples in documentation.
p

polite-continent-12996

08/11/2021, 6:51 PM
Awesome thanks guys, Ill take a look and report back.