Closed christophetd closed 4 years ago
Got the solution! In query.py
, query_aws
is trying to use the account name ("test") to access the JSON file, while apparently it's stored with the account ID. Using the account ID as the account name in config.json seems to do the trick.
Not sure if I did something wrong?
Anyway, thanks for the great tool!
I'm getting this too, and that solution did not work
No solution
I ran the config.json through jq to get proper formatting and then overwrote the original. That appears to have worked for me.
I've been trying out CloudMapper on multiple unrelated AWS accounts and I always get the same error:
This seems to be because
pyjq.all(".Regions[]{}".format(region_filter), region_data)
incommon.py
fails. If I replace the JSON filter with.Regions[]?{}
, another exception is thrown:Which is weird because running
aws ec2 describe-regions
returns:After some additional debugging, it appears that
region_data
returned byquery_aws(account, "describe-regions")
is an empty dictionary.Any idea how to solve this? Setup: Python 3.6.9 inside a venv on Ubuntu 18.04 LTS
Thank you!