Skip to content

cloudg deps --json

Section 20 · From docs/INVENTORY_REFERENCE.md on GitHub

cloudg deps loads a saved map (--map, default ./reports) and builds a dependency graph.

  • With an ASSET argument, --json prints graph.tree(asset, direction, depth) exactly as in 12.2. --direction is up, down or both (default); --depth defaults to 3. The asset is matched with find() (internal ID, ARN, unique name, unique ARN tail); no unique match exits with status 1.
  • Without an ASSET, --json prints the overview:
Key Type Content
shared_dependencies list graph.shared_dependencies(top) (12.3)
largest_blast_radius list graph.blast_radius(top=top) (12.4)
cross_account_edges list cross_account_edges(assets, edges) (13.1), every edge (--top only limits the table view)

--top defaults to 15.

cloudg deps arn:aws:iam::123456789012:role/orders-worker --json > role-deps.json
cloudg deps --map ./reports --top 50 --json > overview.json