spacelift-io / spacectl

Spacelift client and CLI
MIT License
131 stars 35 forks source link

[Beamer Feature Request] Expand spacectl to output resource info (jq?) #175

Closed DDSpacelift closed 1 year ago

DDSpacelift commented 1 year ago

It might be possible to use spacectl to virtually inventory resources managed by stacks. The "resources" views, per stack, by space or universally, that are available in the WebUI break down quickly at scale, and are not as helpful as they might be if a CLI method were provided. If spacectl were able to output the same information, perhap parsible with jq or yq, then we might use it to produce inventory reports, inventory diffs, across all stacks or by space, or with label filters. At present, there are few or no effective tools that can produce snapshot Asset inventories, but in one stroke spacectl could fill a void, and allow spacelift customers to ask many questions, such as "what stack is managing this resource?" "how many resources of each type do I have under management?" "how many stacks do I have that use this version of this provider?" "how many resources of aws_this_type do I have that might need configuration updates due to changes in this_api?" and more beside inv rpts

tomasmik commented 1 year ago

outputing resources is now possible: https://github.com/spacelift-io/spacectl/pull/176