Why EC2 Hibernation cannot be enabled after initial launch?

1

I'm trying to understand specifics behind the EC2 hibernation. Many parameters such as user data and instance type can be changed after the initial launch. However, to enable hibernation the application needs to be migrated to another EC2 with enabled hibernation instance. Why it works this way?

Vadim K
已提問 1 年前檢視次數 453 次
1 個回答
0

Hello,

Thank you for your post. I understand that you would like some clarification on why you can not enable hibernation for an EC2 instance after launch.

Please note that as discussed here [1] [2], enabling/disabling of hibernation on EC2 instances after launch is currently not supported.

Despite being unsupported at the moment, I would be more than happy to submit a feature request on your behalf to the service team for this issue.

As you have already pointed out, there is a workaround which can be useful for your case. You can create a custom AMI from the running instance and launch a new instance from that AMI and while launching this new instance, please select the stop-hibernate option. Please follow the steps here [3] [4] to create your own AMI and launch the instance using the same.

References:

[1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enabling-hibernation.html [2] https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/enabling-hibernation.html [3] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html [4] https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_EBSbacked_WinAMI.html#how-to-create-windows-ebs-ami

Paul_M
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南