Disable Amazon EC2 Dedicated Host recovery - 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).

Disable Amazon EC2 Dedicated Host recovery

You can disable host recovery at any time after the Dedicated Host has been allocated.

To disable host recovery after allocation using the 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 for which to disable host recovery, and then choose Actions, Modify Host Recovery.

  4. For Host recovery, choose Disable, and then choose Save.

To disable host recovery after allocation using the Amazon CLI

Use the modify-hosts command and specify the host-recovery parameter.

$ aws ec2 modify-hosts --host-recovery off --host-ids h-012a3456b7890cdef