Reputation: 55635
It's unclear to me exactly how the underlying AWS Fargate cluster works under the covers.
Does the underlying cluster still scale up and down as needed when the tasks need more instances, and if so, where is that specified?
Upvotes: 13
Views: 4298
Reputation: 524
Yes, Application Autoscaling works fine with Fargate.
Using CloudFormation:
AWS::ApplicationAutoScaling::ScalableTarget
and specify for RescoureId
your service/<cluster-name>/<service-name>
AWS::ApplicationAutoScaling::ScalingPolicy
and specify only the ScalingTargetId
(do not declare ScalableDimension
, ServiceNamespace
and RescoureId
)Add it will scale in/out your ECS service
Upvotes: 10