mondoohq / cnquery

open source, cloud-native, graph-based asset inventory
https://cnquery.io
Other
320 stars 21 forks source link

`aws.cloudtrail.trails { logGroup.metricsFilters {metrics { alarms {*} } } }` fails to return data:` -> ERROR - cannot convert primitive with NO type information #3178

Closed mm-weber closed 9 months ago

mm-weber commented 9 months ago

Description

The alarms bit of:

aws.cloudtrail.trails { logGroup.metricsFilters {metrics { alarms {*} } } } fails to return data:

cnspec> aws.cloudtrail.trails { logGroup.metricsFilters {metrics { alarms {*} } } }` fails to return data:
2 errors occurred:
    * 1 error occurred:
    * 1 error occurred:
    * 1 error occurred:
    * cannot convert primitive with NO type information

    * cannot find function '{}' for type 'null'
aws.cloudtrail.trails: [
  0: {
    logGroup.metricsFilters: 1 error occurred:
    * 1 error occurred:
    * 1 error occurred:
    * cannot convert primitive with NO type information

  }
  1: {
    logGroup.metricsFilters: cannot find function '{}' for type 'null'

Expected behavior A clear and concise description of what you expected to happen.

Screenshots or CLI Output

Desktop (please complete the following information):

cnspec v10.1.4 (91b8e48, unknown)
 /home/manuel $ cnspec providers

→ builtin (found 2 providers)

  core 10.0.0
  mock 9.0.0 with connectors: mock

→ /home/manuel/.config/mondoo/providers (found 21 providers)

  arista 9.1.17 with connectors: arista
  atlassian 9.1.18 with connectors: atlassian
  aws 10.0.5 with connectors: aws
  azure 10.0.7 with connectors: azure
  equinix 9.1.18 with connectors: equinix
  gcp 10.0.1 with connectors: gcp
  github 10.0.0 with connectors: github
  gitlab 9.1.18 with connectors: gitlab
  google-workspace 9.1.21 with connectors: google-workspace
  ipmi 9.1.18 with connectors: ipmi
  k8s 10.0.2 with connectors: k8s
  ms365 10.0.3 with connectors: ms365
  network 9.1.8 with connectors: host
  oci 10.0.0 with connectors: oci
  okta 10.0.0 with connectors: okta
  opcua 10.0.0 with connectors: opcua
  os 10.0.3 with connectors: local, ssh, winrm, vagrant, container, docker, filesystem
  slack 10.0.0 with connectors: slack
  terraform 9.1.17 with connectors: terraform
  vcd 10.0.0 with connectors: vcd
  vsphere 9.1.18 with connectors: vsphere

→ /opt/mondoo/providers (found 3 providers)

  network 9.1.10 with connectors: host
  os 10.0.1 with connectors: local, ssh, winrm, vagrant, container, docker, filesystem
  vsphere 10.0.1 with connectors: vsphere

Additional context Add any other context about the problem here.

mm-weber commented 9 months ago

Same with aws.cloudwatch.alarms

image