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

astonishing-monitor-79630

01/26/2022, 1:37 PM
Hello guys! Related question to import above: If I want to rollback an import of a resource, the way I have worked out is to use
pulumi state delete urn:of:resource
, but what is the easiest way to find that urn from ideally the cli? I can use the somewhat unwieldy
pulumi stack --show-ids --show-urns | grep 'resource_name'
but is there a better way?
I could not find the urn in the web console either, but perhaps I am just blind?
e

echoing-dinner-19531

01/26/2022, 1:52 PM
I'm not sure what a better way would be via the cli? List and grep seems pretty sane. Also I don't think your being blind on the web console, I can't see URNs there either which is suprising.
l

lemon-agent-27707

01/26/2022, 1:59 PM
If you click on the resource details page, the URN is a part of the URL. Sorry for the inconvenience, we'll add the URL to the details page per https://github.com/pulumi/service-requests/issues/7
👍 1
a

astonishing-monitor-79630

01/26/2022, 9:58 PM
Thanks guys, I had not noticed it in the URL (probably due to modern browsers hiding the full url:s 🤷).
And I agree that list + grep is a very sane approach in this case, it was more to check whether I had overlooked something obvious in terms of commands.
l

lemon-agent-27707

01/27/2022, 10:50 PM
@astonishing-monitor-79630 We made a change to update the resource detail page to display the URN and a
copy to clipboard
button. It should be deployed sometime tomorrow.
🙌 2
a

astonishing-monitor-79630

01/27/2022, 10:52 PM
Thanks Evan! I’ll make sure to check that out!
2 Views