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).
Configure the host maintenance setting for an Amazon EC2 Dedicated Host
Enable host maintenance to ensure that your instances running on a Dedicated Host are
automatically recovered onto a new Dedicated Host during a scheduled maintenance event.
If you disable host maintenance, you receive an email notification to evict
the degraded host and manually migrate your instances to another host within 28
days. A replacement host is allocated if you have Dedicated Host reservation. After 28
days, the instances running on the degraded host are terminated, and the host is
released automatically.
- Console
-
To enable host maintenance for your Dedicated Host
-
Open the Amazon EC2 console at
https://console.amazonaws.cn/ec2/.
-
In the navigation pane, choose
Dedicated Hosts.
-
Select the Dedicated Host > Actions >
Modify host.
-
Select on in the Host
maintenance field.
To disable host maintenance for your Dedicated Host
-
Open the Amazon EC2 console at
https://console.amazonaws.cn/ec2/.
-
In the navigation pane, choose
Dedicated Hosts.
-
Select the Dedicated Host > Actions >
Modify host.
-
Select off in the Host
maintenance field.
- Amazon CLI
-
To enable host maintenance for your Dedicated Host
Use the modify-hosts command.
aws ec2 modify-hosts \
--host-maintenance on \
--host-ids h-0d123456bbf78910d
To disable host maintenance for your Dedicated Host
Use the modify-hosts command.
aws ec2 modify-hosts \
--host-maintenance off \
--host-ids h-0d123456bbf78910d
- PowerShell
-
To enable host maintenance for your Dedicated Host
Use the Edit-EC2Host cmdlet.
Edit-EC2Host `
-HostMaintenance on `
-HostId h-0d123456bbf78910d
To disable host maintenance for your Dedicated Host
Use the Edit-EC2Host cmdlet.
Edit-EC2Host `
-HostMaintenance off `
-HostId h-0d123456bbf78910d