Question about renaming a resource - if I have a r...
# general
g
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
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
Thanks!