Hi, basic question here - is there an easy way to ...
# general
s
Hi, basic question here - is there an easy way to get the output of pulumi calls like
up
and
preview
to be sorted alphabetically by resource type? E.g. I just want all aws:iam resources to be listed together instead of jumbled throughout.
b
You can add the
--json
option. Pulumi will return a stream of JSON objects then. You can use
jq
or any other JSON tool to process the output for your needs.
g
In addition to Thomas's tip ^^^, one can create a Component Resource that encapsulates all the IAM related resources and then it will show them grouped and indented under the name of the Component Resource.
👍🏻 1
s
Got it, thanks all!
👍🏻 1