You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the Docker container, when running cloudmapper.py report, with multiple accounts, I get the following error:
Traceback (most recent call last):
File "./cloudmapper.py", line 72, in <module>
main()
File "./cloudmapper.py", line 66, in main
commands[command].run(arguments)
File "/opt/cloudmapper/commands/report.py", line 471, in run
report(accounts, config, args)
File "/opt/cloudmapper/commands/report.py", line 91, in report
"collection_date": get_collection_date(account)[:10],
File "/opt/cloudmapper/shared/common.py", line 332, in get_collection_date
account_struct, "iam-get-credential-report", get_us_east_1(account_struct)
File "/opt/cloudmapper/shared/common.py", line 306, in get_us_east_1
for region_json in get_regions(account):
File "/opt/cloudmapper/shared/common.py", line 162, in get_regions
regions = pyjq.all(".Regions[]{}".format(region_filter), region_data)
File "/usr/local/lib/python3.7/site-packages/pyjq.py", line 49, in all
return compile(script, vars, library_paths).all(_get_value(value, url, opener))
File "_pyjq.pyx", line 209, in _pyjq.Script.all (_pyjq.c:2561)
_pyjq.ScriptRuntimeError: Cannot iterate over null (null)
After some debugging I saw the account data involved did have a describe-regions.json and it contained data in the right format. However, the account ID started with a zero. Doing this:
cd account-data
ln -s 012345678 12345678 # replace with real account IDs
...fixed it. Very nasty hack that may mess up other parts of my audit though! This should be fixed - clearly Python is doing a silent type conversion to a number somewhere and stripping the zero.
The text was updated successfully, but these errors were encountered:
I was unable to install cloud mapper on macOS Monterey, Ubuntu 22.04 and Mint.
So I decided to install docker on macOS Monterey and follow these instructions : #896
Everything is fine, but when I type python cloudmapper.py report --accounts XXX,XXX, what I have to input as accounts. I try with audit, my account on AWS and the number of AWSaccount. I use a specific config.json for my AWS platform but it asks a region or tells me audit our xxxx are not in my config file.
Could you please tell me what I need to add to my config.json file ?
Using the Docker container, when running
cloudmapper.py report
, with multiple accounts, I get the following error:After some debugging I saw the account data involved did have a
describe-regions.json
and it contained data in the right format. However, the account ID started with a zero. Doing this:...fixed it. Very nasty hack that may mess up other parts of my audit though! This should be fixed - clearly Python is doing a silent type conversion to a number somewhere and stripping the zero.
The text was updated successfully, but these errors were encountered: