https://pulumi.com logo
#general
Title
# general
a

able-camera-57198

11/26/2021, 5:51 PM
Is there any way to Pulumi to list all current state with keys and paths so that I can easily figure out the parameters I need to do a manual delete?
b

billowy-army-68599

11/26/2021, 5:54 PM
pulumi stack export
should do it
a

able-camera-57198

11/26/2021, 5:54 PM
That's quite verbose.
Is there anything tidier just for the sake of doing a bit of manual state fiddling? Or am I stuck coming up with JQ to digest this?
Like I basically just need pulumi name and resource id pairs.
The URNs look like this:
urn:pulumi:myproject-myenvironment-api::myproject-api::myproject:api:Service$gcp:serviceAccount/account:Account::ca-api
But when I call
pulumi state delete
, it tells me that it can't be found.
b

billowy-army-68599

11/26/2021, 9:17 PM
@able-camera-57198 your shell is probably escaping the
$
- make sure you wrap in quotes
w

white-balloon-205

11/27/2021, 12:03 AM
pulumi stack --show-urns
should also do more directly what you are looking for here.
🙏🏻 1
a

able-camera-57198

12/03/2021, 2:56 AM
Thanks! I'll check it out 🙂