Configure the host maintenance setting for an Amazon EC2 Dedicated Host - Amazon Elastic Compute Cloud

Configure the host maintenance setting for an Amazon EC2 Dedicated Host

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

AWS Management Console
To enable host maintenance for your Dedicated Host using AWS Management Console.
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/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 AWS Management Console.
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/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 AWS Management Console.
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Dedicated Hosts.

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

AWS CLI
To enable or disable host maintenance for your new Dedicated Host during allocation using AWS 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 AWS 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 AWS 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.