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

gentle-zoo-32137

01/29/2024, 6:03 PM
Question about renaming a resource - if I have a resource and want to change its name, I use the
aliases
option to indicate the old name to pulumi to avoid re-creating the resource. After I run
pulumi up
are all traces of the old name gone from the state? Is it safe to now remove the
aliases
option, or do I need to keep all the old names around as aliases for posterity?
e

echoing-dinner-19531

01/29/2024, 7:25 PM
If you've successfully run
up
all old names will be gone. Generally people leave them in because they have multiple stacks and not all update at the same time. If your sure all stacks have been updated past the point the alias was added it's safe to remove it.
g

gentle-zoo-32137

01/30/2024, 7:35 AM
Thanks!