- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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
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
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 2 Jahren
Thank you for your reply!
Riku, you are very welcome!