Editing AWS Instance Metadata Service (IMDS)

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
  
  
* <code>[[aws ec2 modify-instance-metadata-options]]</code>
+
* [[Instance metadata and user data]]
* [[IMDSv2]]
 
  
If you use [[Auto Scaling groups]] and you need to require the use of IMDSv2 on all new instances, your Auto Scaling groups must use [[launch templates]].
+
* [[Azure Instance Metadata Service]]
  
* [[Datadog AWS Integration Billing]]: If your EC2 instances are configured to require the use of Instance Metadata Service Version 2 (IMDSv2), then you must set the parameter ec2_prefer_imdsv2 to true in your Datadog agent configuration to avoid double-billing.
+
* [[IMDSv2]]
 
 
  TOKEN=`[[curl -X PUT]] "http://169.254.169.254/latest/api/token" [[-H]] "X-aws-ec2-metadata-token-ttl-seconds: 21600"` \ && [[curl -H]] "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/[[user-data]]
 
 
 
== Related ==
 
* [[Azure Instance Metadata Service]]
 
* [[Instance metadata and user data]]
 
* <code>[[ec2-imdsv2-check]]</code>, the rule is <code>[[NON_COMPLIANT]]</code> if the <code>[[HttpTokens]]</code> is set to optional.
 
* <code>[[aws ec2 describe-instances]] | grep [[HttpTokens]]</code>
 
* [[AWS EC2 Instance Connect]]
 
* [[Datadog]]: <code>[[DD_EC2_PREFER_IMDSV2]]</code>
 
* [[IMDS initiate session]]
 
* <code>[[Failed to refresh cached credentials, no EC2 IMDS role found]]</code>
 
  
 
== See also ==
 
== See also ==
* {{IMDS}}
+
* {{AWS}}
* {{AWS EC2}}
 
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: