duo-labs / duo-labs/cloudmapper

cloudmapper.py report: _pyjq.ScriptRuntimeError: Cannot iterate over null (null)

Open
#663 6 comments 6 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
6.3k
Forks
836
PR merge metrics
No merged PRs in 30d

Description

stats_config.yaml contains the following:
query: '[.Reservations[].Instances[]|select(.State.Name == "running")]|length'

When I run the report module, I ge the null error.

I changed the above line to:
query: '[.Reservations[]?.Instances[]|select(.State.Name == "running")]|length'

and this works.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.