Does `state` support modifying the provider of a r...
# general
r
Does
state
support modifying the provider of a resource?
s
Generally speaking, changing the provider of a resource also changes the resource’s URN, which means Pulumi will recreate the resource on the next
pulumi up
. To alleviate this, alias the new provider to match the old provider’s name: https://www.pulumi.com/docs/concepts/options/aliases/
r
Thanks Scott! Yes I'm aware of
alias
. I just wanted to see whether we can keep it cleaner without having
alias
in the code
s
I don’t believe so (but I’m human so I could be wrong).