If you no longer need a scaling group, you can delete it to free up your scaling group quota.
Considerations
-
If you enabled Deletion Protection when you created the scaling group, you cannot delete the group from the console or by calling an API operation. This feature prevents accidental deletion.
-
Deleting a scaling group also deletes the associated scaling configurations, scaling rules, scaling activities, and scaling request information. However, scheduled tasks, load balancers, and RDS instances are not deleted.
-
If a scaling group contains running ECS instances or ECI instances:
-
Auto Scaling removes and releases any instances it automatically created.
-
Auto Scaling handles manually added instances based on their lifecycle management settings. If the scaling group manages the instance's lifecycle, it removes and releases the instance. Otherwise, the scaling group only removes the instance from the group.
WarningIf you add an ECS instance with release protection to a scaling group and enable lifecycle management, Auto Scaling ignores the instance's release protection attribute. After you delete the scaling group, Auto Scaling forcibly releases the instance. To prevent this, enable instance protection for the ECS instance within the scaling group. For more information, see SetInstancesProtection.
-
Procedure
Log on to the Auto Scaling console.
In the navigation pane on the left, click Scaling Groups.
In the top navigation bar, select a region.
-
Find the scaling group that you want to delete and choose
>Set Deletion Protection Status for Scaling Group in the Actions column. -
In the dialog box that appears, check whether Deletion Protection is enabled.
-
If it is enabled, turn off the Deletion Protection switch and click OK.
-
If it is disabled, click OK to close the dialog box.
-
-
In the Actions column of the scaling group that you want to delete, click Delete.
-
In the confirmation dialog box, select I am aware of the instances and associated resources to be released and understand the data risks., and then click OK.
The scaling group then enters the Deleting state. After the scaling group is deleted, it is removed from the list.
Related APIs
-
DeleteScalingGroup: Deletes a scaling group.