Closed commjoen closed 4 years ago
Thanks so much for the question. Yes, for EC2, roles work a little differently than other services. The instance profile is like a container for the role that is attached to the EC2 instance. Its purpose is to provide the role's temporary credentials to an application that runs on the instance, so you need permissions for the ListInstanceProfiles action to be able to list all of the roles. To learn more, see https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2.html.
Hello there, Thank you for all the documentation for the IAM service! It has helped us a lot! I just wonder: In doc_source/id_roles_use_switch-role-ec2.md it says:
Is there a reason why
ListInstanceProfiles
is required instead ofListRoles
?With warm regards.