Passer au contenu

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)

demandé il y a 3 ans1,5 k vues

1 réponse
1
Réponse acceptée

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

EXPERT

répondu il y a 3 ans

EXPERT

vérifié il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.