I have an AWS account. Let's say my AWS account number is 123456789012
. I have created these IAM roles:
arn:aws:iam::123456789012:role/tiger-123
arn:aws:iam::123456789012:role/tiger-124
arn:aws:iam::123456789012:role/tiger-125
arn:aws:iam::123456789012:role/elephant-101
arn:aws:iam::123456789012:role/elephant-102
I want to allow the AWS account root user of AWS account 111111111111
to be able to list all of the roles in my account that start with tiger
. How do I set up the role and policy to do this and what would be the command the other user uses to list those roles?