Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Remove an instance maintenance
policy
If you want to stop using an instance maintenance policy with your Auto Scaling group, you
can remove it.
- Console
-
To remove an instance maintenance policy (console)
Open the Amazon EC2 console at
https://console.amazonaws.cn/ec2/, and choose Auto Scaling Groups from the navigation pane.
-
On the navigation bar at the top of the screen, choose the
Amazon Web Services Region that you created your Auto Scaling group in.
-
Select the check box next to the Auto Scaling group.
A split pane opens up in the bottom of the page.
-
On the Details tab, choose
Instance maintenance policy,
Edit.
-
Choose No instance maintenance
policy.
-
Choose Update.
- Amazon CLI
-
To remove an instance maintenance policy (Amazon CLI)
Add the --instance-maintenance-policy
option to the
update-auto-scaling-group command. The following
example removes the instance maintenance policy from the specified
Auto Scaling group.
aws autoscaling update-auto-scaling-group --auto-scaling-group-name my-asg
\
--instance-maintenance-policy '{
"MinHealthyPercentage": -1,
"MaxHealthyPercentage": -1
}'