Guest User

Untitled

a guest
Jan 18th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. [ec2-user@i-1234.... ~]$ sudo poweroff
  2.  
  3. [ec2-user@i-1234.... ~]$ curl http://169.254.169.254/latest/meta-data/iam/info
  4. {
  5. "Code" : "Success",
  6. "LastUpdated" : "2019-01-18T20:30:58Z",
  7. "InstanceProfileArn" : "arn:aws:iam::123456789012:instance-profile/...",
  8. "InstanceProfileId" : "AIPA..."
  9. }
  10.  
  11. [ec2-user@i-1234.... ~]$ curl http://169.254.169.254/latest/meta-data/instance-id
  12. i-abcd1234abcd1234
Add Comment
Please, Sign In to add comment