Manage Amazon EC2 Dedicated Host recovery (original) (raw)
Dedicated Host auto recovery restarts your instances on to a new replacement host when certain problematic conditions are detected on your Dedicated Host. You can enable host recovery when you allocate the Dedicated Host or after allocation.
Use the following procedures to enable host recovery when allocating the host.
Console
To enable host recovery at allocation
When allocating a Dedicated Host using the Amazon EC2 console, for Host recovery, choose Enable. For more information, see Allocate an Amazon EC2 Dedicated Host for use in your account.
AWS CLI
To enable host recovery at allocation
Use the allocate-hosts command.
aws ec2 allocate-hosts \
--instance-type m5.large \
--availability-zone eu-west-1a \
--auto-placement on \
--host-recovery on \
--quantity 1
PowerShell
To enable host recovery at allocation
Use the New-EC2Host cmdlet.
New-EC2Host `
-InstanceType m5.large `
-AvailabilityZone eu-west-1a `
-AutoPlacement on `
-HostRecovery on `
-Quantity 1
Use the following procedures to manage host recovery for a Dedicated Host.
Console
To manage host recovery after allocation
- Open the Amazon EC2 console athttps://console.aws.amazon.com/ec2/.
- In the navigation pane, choose Dedicated Hosts.
- Select the Dedicated Host.
- Choose Actions, Modify host.
- For Host recovery, select or clearEnable.
- Choose Save.
AWS CLI
To enable host recovery after allocation
Use the modify-hosts command.
aws ec2 modify-hosts \
--host-recovery on \
--host-ids h-012a3456b7890cdef
To disable host recovery after allocation
Use the modify-hosts command and specify the host-recovery
parameter with a value of off
.
aws ec2 modify-hosts \
--host-recovery off \
--host-ids h-012a3456b7890cdef
PowerShell
To enable host recovery after allocation
Use the Edit-host cmdlet.
Edit-EC2Host `
-HostRecovery on `
-HostId h-012a3456b7890cdef
To disable host recovery after allocation
Use the Edit-EC2Host cmdlet.
Edit-EC2Host `
-HostRecovery off `
-HostId h-012a3456b7890cdef
How host recovery works
View host recovery setting
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.