Is there any way to Pulumi to list all current sta...
# general
a
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
pulumi stack export
should do it
a
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
@able-camera-57198 your shell is probably escaping the
$
- make sure you wrap in quotes
w
pulumi stack --show-urns
should also do more directly what you are looking for here.
🙏🏻 1
a
Thanks! I'll check it out 🙂