If you really mean ID then I assume you've got two resources one that the stack currently points to, and another that you want to point to instead. In which case you can use the import resource option to delete the current one and adopt the new one.
echoing-dinner-19531
03/17/2022, 3:50 PM
If you mean name then
pulumi state rename <resource URN> <new name>
lets you rename a resource handling all the other state file changes required due to the new name.
f
fast-easter-23401
03/17/2022, 5:22 PM
This is great. Thanks @echoing-dinner-19531. I wish to prevent some resources from being created under new names, as they were imported into our current state with names that do not match our existing naming conventions.
fast-easter-23401
03/17/2022, 5:27 PM
BTW, I was referring to resources names (not URNs)
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.