Skip to content

cloudg inventory reference: return structures

From docs/INVENTORY_REFERENCE.md on GitHub

This document specifies every structure the inventory mapper returns or writes: the Python objects (CloudAsset, NetworkEdge, relation objects, InventoryResult, DependencyGraph results, OrganizationTopology, coverage records) and every exported file (inventory-map.json, inventory-graph.json, inventory-map.graphml, inventory-dependencies.json, inventory-organization.json, asset-map.json, compliance-map.json) plus the cloudg deps --json output. Each structure has a field table (name, type, nullability, meaning, how it is computed) and an annotated example.

Related documents:

  • INVENTORY_CATALOG.md: every asset type, the metadata keys it carries, the relations it declares, and the full relationship matrix.
  • INVENTORY_INTERNALS.md: how the mapper, collectors and linker work, and how to extend them.
  • DOCUMENTATION.md: CLI flags, configuration and the rest of cloudg.

The examples are taken from a real cloudg map --org run against a simulated (moto) AWS Organization with a management account, one member account in a nested OU, and one vendor account trusted by a role. Long values are shortened with …; UUIDs are real values from that run, so cross-references between the examples line up.

Sections