Difference between revisions of "AWS: 169.254.169.254"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
  
 +
TOKEN=$(curl -s -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
 
  [[curl --silent]] "-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/iam/security-credentials/role-name
 
  [[curl --silent]] "-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/iam/security-credentials/role-name
  
 
== See also ==
 
== See also ==
 +
* {{AWS EC2}}
 
* {{AWS}}
 
* {{AWS}}
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Revision as of 09:57, 24 February 2022

Advertising: