Update an Auto Scaling group
You can update most of your Auto Scaling group's details. You can't update the name of an Auto Scaling group or change its Amazon Web Services Region.
To update an Auto Scaling group (console)
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
, and choose Auto Scaling Groups from the navigation pane. -
Choose your Auto Scaling group to display information about the group, with tabs for Details, Activity, Automatic scaling, Instance management, Monitoring, and Instance refresh.
-
Choose the tabs for the configuration areas that you're interested in and update the settings as needed. For each setting that you edit, choose Update to save your changes to the Auto Scaling group's configuration.
-
Details tab
These are the general settings for your Auto Scaling group. You can edit and manage these in the same way as during Auto Scaling group creation.
The Advanced configurations section has some options that are not available when creating the group such as termination policies, cooldown, suspended processes, and maximum instance lifetime. You can also view, but not edit the placement group and service-linked role of the Auto Scaling group.
If the group is associated with Elastic Load Balancing resources, see Add an Availability Zone before changing Availability Zones. Some restrictions on the load balancer might prevent you from applying changes to your group's Availability Zones to your load balancer's Availability Zones.
-
Activity tab
-
Activity notifications – Amazon SNS notifications
-
-
Automatic scaling tab
-
Dynamic scaling policies – Dynamic scaling policies
-
Predictive scaling policies – Predictive scaling policies
-
Scheduled actions – Scheduled actions
-
-
Instance management tab
-
Lifecycle hooks – Lifecycle hooks
-
Warm pool – Warm pools
-
-
Monitoring tab
-
There is just a single option in this tab, which lets you enable or disable CloudWatch group metrics collection.
-
-
To update an Auto Scaling group using the command line
You can use one of the following commands:
-
update-auto-scaling-group (Amazon CLI)
-
Update-ASAutoScalingGroup (Amazon Tools for Windows PowerShell)
Update Auto Scaling instances
If you associate a new launch template or launch configuration with an Auto Scaling group, all new instances will get the updated configuration. Existing instances continue to run with the configuration that they were originally launched with. To apply your changes to existing instances, you have the following options:
-
Start an instance refresh to replace the older instances. For more information, see Use an instance refresh to update instances in an Auto Scaling group.
-
Wait for scaling activities to gradually replace older instances with newer instances based on your termination policies.
-
Manually terminate them so that they are replaced by your Auto Scaling group.
Note
You can change the following instance attributes by specifying them as part of the launch template or launch configuration:
-
Amazon Machine Image (AMI)
-
block devices
-
key pair
-
instance type
-
security groups
-
user data
-
monitoring
-
IAM instance profile
-
placement tenancy
-
kernel
-
ramdisk
-
whether the instance has a public IP address
-
the Availability Zone distribution strategy