How do I find out if an IAM role is in used

0

I am doing some house cleaning for IAM roles.

  1. How do I filter by roles that are manually created
  2. How do I find out the dependency of each role (if any)
profile picture
Lottie
asked 5 months ago331 views
1 Answer
1
Accepted Answer

Hello.

How do I filter by roles that are manually created

I find it difficult to filter manually created ones.
IAM roles that are automatically created when using AWS services often start with the prefix "Amazon" or "AWS".

How do I find out the dependency of each role (if any)

To check when an IAM role was used, I think it's a good idea to check "Last activity" on the IAM role screen.
a

You may be able to see which resources used an IAM role in CloudTrail's API history.
https://repost.aws/knowledge-center/view-iam-history

profile picture
EXPERT
answered 5 months ago
profile picture
EXPERT
reviewed 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions