duo-labs / cloudmapper

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

Cannot iterate over null (null) during Prepare #879

Open scott-dunt opened 3 years ago

scott-dunt commented 3 years ago

slightly different stack trace (I did fix this..)

python cloudmapper.py prepare --account XXXXX
Building data for account XXXXX

Running CloudMapper 2.9.1

already patched the requirements.txt for package version conflicts: https://github.com/duo-labs/cloudmapper/pull/876/commits/b5b31ca15077949ade909112e0a6de3b787d2a6b

added the '?' in node.py line 498: ".DBSubnetGroup.Subnets[]?.SubnetIdentifier", self._json_blob

To correct this error, I also had to add "?" to node.py line 574: return pyjq.all(".Groups[]?.GroupId", self._json_blob)

After that it works.

w0rmr1d3r commented 2 years ago

Hello @scott-dunt ! Could this either be a duplicate or a solution for https://github.com/duo-labs/cloudmapper/issues/869 or https://github.com/duo-labs/cloudmapper/issues/845 ?

I can't find the commit you posted, does it belong to your fork?

Cheers!

scott-dunt commented 2 years ago

I didn't commit any code, just documenting that its possible to get this working if you make a few edits