Difference between revisions of "AWS: 169.254.169.254"

From wikieduonline
Jump to navigation Jump to search
m (Welcome moved page 169.254.169.254 to AWS: 169.254.169.254)
Line 4: Line 4:
 
  TOKEN=$(curl -s -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
 
  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
 +
 +
 +
curl http://169.254.169.254/latest/meta-data/local-ipv4
 +
 +
curl http://169.254.169.254/latest/meta-data/public-ipv4
  
 
== See also ==
 
== See also ==

Revision as of 11:12, 15 July 2022

Advertising: