This message was deleted.
# general
s
This message was deleted.
l
You should be able to do this with
aliases
. Here is a blog article I once wrote before I joined Pulumi: https://www.pulumi.com/blog/cumundi-guest-post/
šŸ™ 1
b
Very cool ! I legit never used
aliases
until now... but it sounds mighty useful Do you know if that can also be applied when altering the
provider
of a given resource ? (I’m using multiple providers in
pulumi-snowflake
because of different roles)
l
You can indeed migrate a resource from the default provider to a custom provider without any interruption. Since the provider is itself a resource, you can alias the provider to the
urn
of the default provider. Here is a code snippet in TS showing a similar scenario going from the default AWS provider to an explicit one: https://github.com/pulumi/pulumi/issues/8959#issuecomment-1461297086 So, you don't alias it on the resource itself, but you do it on the attached provider.
partypus 1
šŸ™ 1