Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In terraform for aws_ecs_service how do we set Service Set Auto Scaling

In Terrafrom when creating ecs services how do we define auto Scaling services. I do not see resoruce aws_ecs_service having the option.

enter image description here

like image 249
kumar Avatar asked Oct 16 '25 16:10

kumar


1 Answers

ECS auto scaling is managed by Application Auto Scaling. Thus, to set it up for your ECS service you have to use:

  • aws_appautoscaling_target - example for ECS in the docs.
  • aws_appautoscaling_policy - example for ECS in docs as well.
like image 140
Marcin Avatar answered Oct 18 '25 09:10

Marcin