ParentFull threadrectalogic·If it's an instance role and you are on the EC2 instance, then "curl http://169.254.169.254/latest/meta-data/iam/security-credent... will return the credentials.View on HN