Open G73I opened 4 years ago
It looks like this failed to get info about the regions which makes me assume that the collect
phase was not run.
It also looks like your environment is custom, as it your text mentions python3.8
, when CloudMapper's virtualenv I believe enforces python3.7 (https://github.com/duo-labs/cloudmapper/blob/master/Pipfile#L30). That shouldn't be the source of the problem, but does make me hesitant about what all might be unexpected in your environment.
This exact error happened to me - and later I discovered that the --account
0xdabbad00 the collect phase was run. xXx-foC outlined exactly what I what I did. The "name" in the config.json did not match up. I will execute it again.
Thanks for the Insight.
Has this been solved @G73I ?
python3.8 cloudmapper.py report --account “XXXX" Traceback (most recent call last): File "cloudmapper.py", line 72, in
main()
File "cloudmapper.py", line 66, in main
commands[command].run(arguments)
File "/tools/update1/cloudmapper/commands/report.py", line 471, in run
report(accounts, config, args)
File "/tools/update1/cloudmapper/commands/report.py", line 91, in report
"collection_date": get_collection_date(account)[:10],
File "/tools/update1/cloudmapper/shared/common.py", line 331, in get_collection_date
account_struct, "iam-get-credential-report", get_us_east_1(account_struct)
File "/tools/update1/cloudmapper/shared/common.py", line 305, in get_us_east_1
for region_json in get_regions(account):
File "/tools/update1/cloudmapper/shared/common.py", line 161, in get_regions
regions = pyjq.all(".Regions[]{}".format(region_filter), region_data)
File "/home/me/site/lib/python3.8/site-packages/pyjq.py", line 49, in all
return compile(script, vars, library_paths).all(_get_value(value, url, opener))
File "_pyjq.pyx", line 213, in _pyjq.Script.all
_pyjq.ScriptRuntimeError: Cannot iterate over null (null)