Reputation: 169
I am a little hazy about the need for both. I am using both in ECS CloudFormation. It appears that AWS::AutoScaling::AutoScalingGroup
is for scaling EC2 instances whereas AWS::ApplicationAutoScaling::ScalableTarget
is for scaling containers/tasks. Is my understanding correct?
Upvotes: 2
Views: 686
Reputation: 8415
That is pretty much correct.
AWS::AutoScaling::AutoScalingGroup is used for creating an Auto Scaling group of EC2 instances
AWS::ApplicationAutoScaling::ScalableTarget is used to specify an application resource that can scale - that is any of a range of resources including ECS service, EMR cluster or DynamoDB. A list of all the resources that can be scaled can be found in the ResourceId
parameter description for RegisterScalableTarget.
Upvotes: 2