0

On AWS, I want to review all permissions grant or revoked to our services and redefine them when necessary.

Considering a specific role set on AWS IAM.

How can I filter which services, instances or lambda functions assumed this role?

I tried to filter, for example, Lambda functions under this role, but didn't found how I can do this.

  • Could you please clarify what you are seeking? Are you wanting to know entity can assume a role, or which entity historically did assume a role? – John Rotenstein May 27 at 4:05
0

There is the CloudTrail service to

log, continuously monitor, and retain account activity related to actions across your AWS infrastructure

That should give you an overview which entities assumed which role.

There are also some potentially useful cli commands:

The list-entities-for-policy operation

Lists all IAM users, groups, and roles that the specified managed policy is attached to.

The get-service-last-accessed-details-with-entities operation returns a

list of entities that could have used group or policy permissions to access the specified service

But CloudTrail is the standard governance service.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.