[Impact]
Current ec2 hibernation init agents do not have support for IMDSv2.
[Fix]
Backport a portion of https://github.com/aws/amazon-ec2-hibinit-agent.git commit 9d9bca5c61fa9256289e68c88bd3747af2f62e28 ("Add IMDSv2 support")
[Test Case]
Initiate hibernation in an AWS AMI configured for hibernation. Test an AMI not configured for hibernation.
[Where problems could occur] Hibernation may stop functioning.
[Impact]
Current ec2 hibernation init agents do not have support for IMDSv2.
[Fix]
Backport a portion of https:/ /github. com/aws/ amazon- ec2-hibinit- agent.git commit 9d9bca5c61fa925 6289e68c88bd374 7af2f62e28 ("Add IMDSv2 support")
[Test Case]
Initiate hibernation in an AWS AMI configured for hibernation.
Test an AMI not configured for hibernation.
[Where problems could occur]
Hibernation may stop functioning.