This message was deleted.
# general
s
This message was deleted.
l
The only way I've found to do this is to export the stack, edit the provider by hand, and import the stack.
And you need to have the new provider defined (and possibly in use?) before exporting, so that you can copy its URN to the resources you want to update.
a
Good call, that was what I thought of doing as well. Thanks!
s
Is there an option to import the existing resources with the other provider? Would save you from editing the stack if such an option exists
l
Yes,
pulumi import
has a
--provider
parameter. You'd have to remove the existing resource from state first, which is easy unless you have lots of dependencies on it