https://pulumi.com logo
Title
l

little-cartoon-10569

04/28/2021, 12:44 AM
Is there an easy way to get the URN of a resource for use with
pulumi state delete
? I can't see it in the console.
Do I need to
pulumi stack export
?
b

bumpy-summer-9075

04/28/2021, 12:45 AM
try
pulumi stack -u
(top of my head, I don't have access to the cli right now)
l

little-cartoon-10569

04/28/2021, 12:47 AM
Yep, piped through grep that works great, thanks.
👍 1
Interesting, the "protect" option prevents state delete too. I had assumed that it only prevented real deletes...
b

bumpy-summer-9075

04/28/2021, 12:49 AM
I think it only prevents state deletes, in a sense (you could always delete the resource outside Pulumi)
you can do
pulumi state unprotect urn::foo
l

little-cartoon-10569

04/28/2021, 12:51 AM
I just used --force, worked fine 🙂
b

bumpy-summer-9075

04/28/2021, 12:52 AM
When in doubt, use the force
l

little-cartoon-10569

04/28/2021, 12:54 AM
6 more days, and the Fourth will be with us...
😄 1