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 disable host maintenance for your Dedicated Host
-
Open the Amazon EC2 console at
https://console.aws.amazon.com/ec2/.
-
In the navigation pane, choose
Dedicated Hosts.
-
Select the Dedicated Host > Actions >
Modify host.
-
Select off in the Host
maintenance field.
- AWS 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