Posted On: Feb 13, 2020
You can now enable Amazon EC2 Hibernation for On-Demand and Reserved Instances through AWS CloudFormation, a service that allows you to easily provision and update a collection of AWS resources in an orderly and predictable fashion. Launching EC2 instances with Hibernation enabled has become easier than ever as now you just need to add a single “HibernationOptions” property with “Configured: true” parameter within the AWS::EC2::Instance resource in your CloudFormation template. With this new feature, you can easily make Hibernation a part of your EC2 instance setup through CloudFormation, provided your EC2 instance meets the Hibernation Prerequisites.
You should use Hibernation if you want to save the state of your application with contents stored in memory and disk, when you don’t need your EC2 instance, and resume your application from the saved state later. You can take advantage of this feature without even modifying your existing applications.
Hibernation is available for On-Demand and Reserved Instances running on M3, M4, M5, C3, C4, C5, R3, R4, and R5 instances running Amazon Linux, Amazon Linux 2, Ubuntu 16.04 and 18.04 LTS and Windows Server 2012, 2012R2, 2016 and 2019. For Windows Server, Hibernation is supported for instances up to 16 GB of RAM. For other operating systems, Hibernation is supported for instances with less than 150 GB of RAM.
Visit AWS CloudFormation user guide to learn more about enabling Hibernation for your EC2 instance. To learn more about EC2 Hibernation and how to use it, visit the Blog, Linux or Windows user guides and FAQs. You can also enable Hibernation and hibernate/resume your EC2 instances through AWS Command Line Interface (CLI), AWS SDKs, AWS Tools for Powershell or the AWS Management Console.