awslabs / aws-config-rules

[Node, Python, Java] Repository of sample Custom Rules for AWS Config.
http://aws.amazon.com/config/
Creative Commons Zero v1.0 Universal
1.6k stars 854 forks source link

Config not returning all IAM roles #338

Open Leectan opened 4 years ago

Leectan commented 4 years ago

Wrote a custom lambda function in python to parse through every single IAM role to see if they have specific action in the policy, looks like Config only return 19 ~ 20 evaluations out of the 80 IAM roles in the account.

If anyone can tell me what I'm missing or did wrong, I would greatly appreciate it. Attached are snipets of the code that hopefully provide some insight.

Screen Shot 2020-07-28 at 10 35 08 AM Screen Shot 2020-07-28 at 10 35 15 AM