One of the most annoying problems in Amazon Web Services (AWS) is when your EC2 instance runs into a "freeze" state. If you have been using AWS over a long time, you certainly came across this problem.
The "freeze" state is, in most cases, caused by a hardware issue on the underlying physical server. As the EC2 instances are nothing else than Virtual Machines (VM), they freeze or crash along with the physical server. If you have a proper monitoring in place, you quickly detect such an issue.
To solve this, the affected EC2 instances need to be (forced) powered off and then started again via AWS Console or API. This then starts the EC2 instance on a new physical server.
For customers of the biggest Cloud Provider in the world not a very elegant solution.
Automatic EC2 Recovery
But now AWS has announced a new feature: Automatic EC2 Recovery. Posted on March 30th 2022, automatic recovery means:
Amazon EC2 announces automatic recovery by default, a new feature that makes it even easier for customers to recover their instance when it becomes unreachable. Automatic recovery improves instance availability by recovering the instance if it becomes impaired due to an underlying hardware issue. Automatic recovery migrates the instance to another hardware during an instance reboot while retaining its instance ID, private IP addresses, Elastic IP addresses, and all instance metadata.
The new feature further simplifies the configuration process for automatic recovery as supported instance types are configured to recover by default. Customers can choose to disable automatic recovery for their instance.Amazon Web Services