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.
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.