You can update instance metadata service (IMDS) settings in your AWS clusters to improve security or meet compliance requirements. IMDS provides data about your running instances. IMDSv2 adds protection against vulnerabilities found in IMDSv1. This article explains how to update IMDS settings for Ocean, Elastigroup, and Stateful Nodes.
1. Update IMDS settings for Ocean and Elastigroup
You can define metadata options in your AWS Auto Scaling groups. When you import those groups into the Flexera console, the metadata configuration is also imported. You can then adjust the settings to enforce IMDSv2.
Add the following configuration to your Ocean cluster or Elastigroup API request:
"compute": {
"launchSpecification": {
"instanceMetadataOptions": {
"httpTokens": "required",
"httpPutResponseHopLimit": 12,
"httpEndpoint": "enabled"
}
}
}
After you update the configuration, apply it to your running instances by doing one of these actions:
-
Deploy a new Elastigroup
-
Roll an Ocean cluster
This restarts the instances so they apply the new IMDSv2 settings.
2. Update IMDS settings for Stateful Nodes
When you import a stateful managed node into Flexera, an image is created from the snapshot. When the node recycles, IMDS settings may revert to IMDSv1. To ensure IMDSv2 persists, use a custom AMI and enable IMDSv2 on it.
Create a new AMI with IMDSv2
aws ec2 register-image \
--name my-image \
--root-device-name /dev/xvda \
--block-device-mappings DeviceName=/dev/xvda,Ebs={SnapshotId=snap-0123456789example} \
--imds-support v2.0
Modify an existing AMI to use IMDSv2
aws ec2 modify-image-attribute \
--image-id ami-0123456789example \
--imds-support v2.0
After you configure the AMI, create a stateful node in the Flexera console using that custom AMI. All recycled instances will launch with IMDSv2 enabled.
Related Articles
Update instance metadata (IMDS) settings in AWS clusters 4Number of Views How To: Perform an Offline Update using Snow Update Service (SUS) 258Number of Views Why you may not see all AWS IAM roles when setting up a cluster or group 2Number of Views Move a stateful instance from Elastigroup and manage it directly in AWS 5Number of Views Why AWS EC2 Instance not Detected Correctly by FlexNet Publisher Library, it was Detected as UNKNOWNVM 18Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago