Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ec2-user@i-1234.... ~]$ sudo poweroff
- [ec2-user@i-1234.... ~]$ curl http://169.254.169.254/latest/meta-data/iam/info
- {
- "Code" : "Success",
- "LastUpdated" : "2019-01-18T20:30:58Z",
- "InstanceProfileArn" : "arn:aws:iam::123456789012:instance-profile/...",
- "InstanceProfileId" : "AIPA..."
- }
- [ec2-user@i-1234.... ~]$ curl http://169.254.169.254/latest/meta-data/instance-id
- i-abcd1234abcd1234
Add Comment
Please, Sign In to add comment