- Newest
- Most votes
- Most comments
Hi Riku,
Yes, it required a Launch template at this point until the issue you link to is fixed
But, to minimize your pain, you can find the proper template in this article: https://blog.karims.cloud/2020/11/15/practical-implemenation-of-imdsv2.html
Best,
Didier
Thank you for your reply!
Riku, you are very welcome!
With the CDK, you can set the requireImdsv2 property to true when creating EC2 instances. For example:
new ec2.Instance(this, 'Instance', {
requireImdsv2: true
})
By setting
requireImdsv2
to true, any instances launched through the CloudFormation stack will only be able to use IMDSv2 to retrieve instance metadata. IMDSv1 will be disabled.
This allows you to enforce IMDSv2 for new EC2 instances in CloudFormation without needing to define a separate launch template. The CDK takes care of configuring the necessary instance metadata options behind the scenes.
https://docs.aws.amazon.com/drs/latest/userguide/set-imdsv2.html
Relevant content
- asked 2 years ago
- Accepted Answerasked 2 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Sir, my account has been blocked due to the bill before completion of the month or it is not written anywhere that the account has been blocked due to the bill before making the bill invoice for the month so please unhold the account as soon as possible. Do it or correct your rule, you will not pay this bill, you will fool people.