How to use the command line to list the resources ...
# general
h
How to use the command line to list the resources currently managed by pulumi
e
pulumi stack ls --all | awk '{print $1}' | tail +2 | xargs -L1 pulumi stack export --stack | jq ".deployment.resources[]? | {urn: .urn}"
Will print something like:
Copy code
{
  "urn": "urn:pulumi:test2::aws-ts-eks::pulumi:providers:aws::default_4_31_0"
}
{
  "urn": "urn:pulumi:p-it-ibasa-pc-digitaloce-f3cc20e8::digitalocean-ts-loadbalanced-droplets::pulumi:providers:digitalocean::default_4_11_1"
}
{
  "urn": "urn:pulumi:aegddxvk::exception_inline_node::pulumi:pulumi:Stack::exception_inline_node-aegddxvk"
}
We don't have anything built into the CLI to do this iteration, but as you can see you can just pipe into CLI tools to do it pretty simply
h
Thanks