Instance metadata service (IMDS) provides information that your instances use to configure and manage themselves. IMDSv2 improves security by requiring session‑oriented requests to help prevent unauthorized metadata access.
Use this article to update IMDS settings in your Ocean, Elastigroup, or stateful node deployments.
Update IMDS settings for Ocean and Elastigroup
When you import an Auto Scaling group into Ocean or Elastigroup, the group’s metadata settings come from AWS. You can update your Spot deployment to use IMDSv2 by adding the
instanceMetadataOptions block in your cluster configuration.-
Follow the Ocean AWS Cluster Create or Elastigroup AWS Create API instructions.
- Add this configuration within the
launchSpecificationsection:"compute": { "launchSpecification": { "instanceMetadataOptions": { "httpTokens": "required", "httpPutResponseHopLimit": 12, "httpEndpoint": "enabled" } } } - Apply the changes to running instances so they restart with the new IMDS settings:
- Deploy an updated Elastigroup configuration, or
- Roll the Ocean cluster
Update IMDS settings for a stateful node
When you import a stateful managed node, Flexera creates an image from the snapshot. If the node is recycled, the metadata configuration resets to IMDSv1. To keep IMDSv2 enabled, use your own AMI and configure the IMDS setting on that image.
Create a new AMI with IMDSv2 enabled
- Follow the Stateful Node AWS Create Stateful Node API instructions and add this configuration for the group:
"compute": { "launchSpecification": { "metadataOptions": { "httpTokens": "optional", "httpPutResponseHopLimit": "33", "instanceMetadataTags": "Enabled" } } }, - If adding to an existing Stateful node - apply these changes to the currently running instance by utilizing the Recycle action, so the Stateful node is restarted and relaunches with these metadata options enabled.
Run:
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
Update an existing AMI to IMDSv2
Run:
aws ec2 modify-image-attribute \
--image-id ami-0123456789example \
--imds-support v2.0
Use the custom AMI
Create a stateful node in the Spot console using the AMI you updated.
After following these steps, your Ocean clusters, Elastigroup instances, and stateful nodes launch with IMDSv2 enabled, improving instance security and metadata protection.
Was this helpful?
Related Articles
Update instance metadata service (IMDS) settings in AWS clusters 4Number 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 Locally configured ExcludeDirectory settings get overwritten by agent policy update even if no exclusions are specified in… 4Number of Views
Revenera Assistant
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
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. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Revenera Assistant
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago