I've done it, but it's laborious. Create the new provider in the normal way, and
up
. Export the stack. Search/replace all the old provider with new provider. Import the stack. Delete the old provider.
w
worried-queen-62794
12/15/2020, 11:10 PM
Ah thought as much, thanks. That's what I started doing. What is weird is that ran
up
and it created the new provider then I was trying to revert my changes and it kept wanting to change it. After I did the search replace it then wanted to change it back to the old one. Not too sure what happened there.
worried-queen-62794
12/15/2020, 11:12 PM
Fixed it now. Yeah so changing the provider being passed to the resource in between did something strange. Don't recommend doing that lol.
q
quiet-restaurant-29133
12/16/2020, 8:36 AM
yes, I had the same issue, changing provider and pulumi wanted to re-create everything. I ended up deleting resources in the stack and and importing them, this is an un-warranted behaviour
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.