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

fix: Ghostbuster region discovery when --allregions is used with --roles or --autoroles #12

Merged
merged 2 commits into from
Mar 23, 2023

Conversation

gister9000
Copy link
Contributor

The problem was that ec2.describe_regions call wasn't made using role session so I changed that.

I added `ec2:DescribeRegions' to the TargetAccountRole IAM policy too as it's needed.

Not sure how it is supposed to work without that permission in profiles mode. Maybe adding ec2:DescribeRegions fixes #9 🤷

@infosec-au
Copy link
Contributor

Thanks for your contribution :) Looks good to me.

@infosec-au infosec-au merged commit 464417c into assetnote:master Mar 23, 2023
@infosec-au
Copy link
Contributor

I've pushed 1.0.2 to PyPi as well. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allregions flag doesn't seem to be working as expected
3 participants