2 Answers
- Newest
- Most votes
- Most comments
0
Okay I have figured this out, not sure if others need to know how to do this but here it is:
curl http://169.254.169.254/latest/meta-data/iam/security-credentials/<role_nm>
Each AWS EC2 instance resolves the above IP to a server that provides meta-data associated with that particular EC2 instance.
Edited by: sshekhar on May 24, 2020 9:23 AM
answered 4 years ago
Relevant content
- asked 10 months ago
- Accepted Answerasked a year ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago