How to list AWS policies (with resource -* and action contains) attached to an instance profile?
dcpeach
✭✭✭✭✭
Able to list the policies but stuck on how to query whether it has resource "*" along with the action.
0
Comments
-
Hi, thanks for your question! This should find what you're looking for:
FIND aws_instance as i THAT USES aws_iam_role as r THAT ASSIGNED AccessPolicy as p THAT ALLOWS AS rule * WHERE rule.resources='*' AND rule.actions='*' RETURN r.displayName, i.displayName, i.iaminstanceProfileArn, p.displayName, p.policyName, p.roleName
0
This Month's Leaders
Categories
- 336 All Categories
- Featured Categories
- 7 About the AskJ1 Community
- 11 Product Announcements
- From Mission Control
- 1 Rapid Response
- 3 How J1 Uses J1
- Topics
- 131 Asset Management
- 56 Compliance & Reporting
- 65 Security Operations
- 40 Security Engineering
- 5 Open Source
- 18 News, Careers and More