AWS::AutoScaling::AutoScalingGroup
Auto Scaling Groups(ASG) scales instances to match the load demandScale out: add instancesScale in: remove instances

- New instances can be
automatically registeredto LB - ASG ensures to keep the desired number of replicas
-
ASG terminates unhealthy instances can relaunch it
-
Reasons to not terminate an unhealthy instance:
- Instance on
impaired status - Healthcheck
grace periodhas not yet expired - Instance has failed ELB health check
Properties
LaunchTemplate
- Reference to
AWS::EC2::LaunchTemplate LaunchTemplatecan be used to provision capacityacross multiple instance types(e.g., on-demand and spot instances)
LaunchConfigurationName
- Reference to
AWS::AutoScaling::LaunchConfiguration LaunchConfigurationcannot be used to provision capacity to multiple instance types
TerminationPolicies
Termination Policy- Terminate instance from AZ with most instances
- Terminate instance with oldest launch configuration