Steve
Steve

Reputation: 55635

AWS Fargate Cluster Scaling

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

Answers (1)

Tommaso
Tommaso

Reputation: 524

Yes, Application Autoscaling works fine with Fargate.

Using CloudFormation:

  • create an AWS::ApplicationAutoScaling::ScalableTarget and specify for RescoureId your service/<cluster-name>/<service-name>
  • create your 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

Related Questions