duo-labs / cloudmapper

CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
BSD 3-Clause "New" or "Revised" License
5.99k stars 809 forks source link

us-east-1 is hardcoded #760

Closed deepti-nucleusteq closed 4 years ago

deepti-nucleusteq commented 4 years ago

Please mention the following:

It could not collect any data for my account existing in region us-west-1.

It's not mentioned anywhere to create describe-regions.json. I created it and added us-west-1 as it is the default region for my account. I found : Traceback (most recent call last): File "cloudmapper.py", line 72, in main() File "cloudmapper.py", line 66, in main commands[command].run(arguments) File "/Users/deeptibaghel/git/cloudmapper/commands/report.py", line 471, in run report(accounts, config, args) File "/Users/deeptibaghel/git/cloudmapper/commands/report.py", line 91, in report "collection_date": get_collection_date(account)[:10], File "/Users/deeptibaghel/git/cloudmapper/shared/common.py", line 330, in get_collection_date account_struct, "iam-get-credential-report", get_us_east_1(account_struct) File "/Users/deeptibaghel/git/cloudmapper/shared/common.py", line 309, in get_us_east_1 raise Exception("us-east-1 not found") Exception: us-east-1 not found

When I checked the code I found us_east_1 is hardcoded at multiple places. Does it work for us-east-1 region only ?

0xdabbad00 commented 4 years ago

You need to run collect.