Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iam:ListAccessKeys denied exception in gathering.py #132

Open
j0eblow opened this issue May 16, 2023 · 0 comments
Open

iam:ListAccessKeys denied exception in gathering.py #132

j0eblow opened this issue May 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@j0eblow
Copy link

j0eblow commented May 16, 2023

Describe the bug
gathering.py does not handle AccessDenied (e.g. iam:ListAccessKeys is explicitly denied). Here is my quick fix for it (I ran black on it as well).

To Reproduce
Steps to reproduce the behavior, please include information on suspected users/roles that are the source of the issue when possible:

  1. Create an IAM role with iam:ListAccessKeys denied (or have an SCP that explicitly denies it).
  2. Run pmapper graph create.
  3. See error

Expected behavior
The function should handle exceptions. Unless it breaks something.

@j0eblow j0eblow added the bug Something isn't working label May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant