How do you detect and clean up unused roles and permissions?
IntermediateProductionIAM Best Practices
Answer
Enable IAM Access Analyzer unused access analysis at the org level; it reports unused roles, unused access keys, unused passwords and unused services/actions within policies over a tracking period you choose. Combine with RoleLastUsed from aws iam get-role. Our process: auto-ticket the owner (from tags), wait 30 days, detach policies, wait again, delete. Never delete roles referenced by Lambda, ECS or trust policies without checking.
More on IAM Best Practices
What does least privilege look like in practice, not in theory?BeginnerWhat are the IAM rules you enforce for humans?BeginnerHow do you design Identity Center permission sets for many teams?IntermediateHow does ABAC with Identity Center work, and when is it worth it?AdvancedWhen do you use permission boundaries in production?IntermediateHow do you remove long-lived access keys from an existing estate?Intermediate