Configure the host maintenance setting for an Amazon EC2 Dedicated Host - Amazon Elastic Compute Cloud
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

You can configure host maintenance for all supported Dedicated Hosts via Amazon Web Services Management Console or Amazon CLI. See the following table for more details.

Amazon Web Services Management Console
To enable host maintenance for your Dedicated Host using Amazon Web Services Management Console.
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the navigation pane, choose Dedicated Hosts.

  3. Select the Dedicated Host > Actions > Modify host.

  4. Select on in the Host maintenance field.

To disable host maintenance for your Dedicated Host using Amazon Web Services Management Console.
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the navigation pane, choose Dedicated Hosts.

  3. Select the Dedicated Host > Actions > Modify host.

  4. Select off in the Host maintenance field.

To view the host maintenance configuration for your Dedicated Host using Amazon Web Services Management Console.
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the navigation pane, choose Dedicated Hosts.

  3. Select the Dedicated Host, and in the Description tab, review the Host maintenance field.

Amazon CLI
To enable or disable host maintenance for your new Dedicated Host during allocation using Amazon CLI.

Use the allocate-hosts command.

Enable

aws ec2 allocate-hosts --region us-east-1 --quantity 1 --instance-type m3.large --availability-zone us-east-1b --host-maintenance on

Disable

aws ec2 allocate-hosts --region us-east-1 --quantity 1 --instance-type m3.large --availability-zone us-east-1b --host-maintenance off
To enable or disable host maintenance for your existing Dedicated Host using Amazon CLI.

Use the modify-hosts command.

Enable

aws ec2 modify-hosts --region us-east-1 --host-maintenance on --host-ids h-0d123456bbf78910d

Disable

aws ec2 modify-hosts --region us-east-1 --host-maintenance off --host-ids h-0d123456bbf78910d
To view the host maintenance configuration for your Dedicated Host using Amazon CLI.

Use the describe-hosts command.

aws ec2 describe-hosts --region us-east-1 --host-ids h-0d123456bbf78910d
Note

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.