cloudg deps --json¶
cloudg deps loads a saved map (--map, default ./reports) and builds a dependency graph.
- With an ASSET argument,
--jsonprintsgraph.tree(asset, direction, depth)exactly as in 12.2.--directionisup,downorboth(default);--depthdefaults to 3. The asset is matched withfind()(internal ID, ARN, unique name, unique ARN tail); no unique match exits with status 1. - Without an ASSET,
--jsonprints 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