Unfortunately there is no simple support for this. There are two options that I have used that work well.
little-cartoon-10569
04/13/2021, 8:25 PM
The easier depends on there not being any references to the resource (e.g. from child resources). You can delete the resource from state and import it again. Importing resources uses the default provider (unless you edit the created code).
little-cartoon-10569
04/13/2021, 8:26 PM
The harder option is to export the stack, find the "wrong" and default providers, edit the resource's provider from the "wrong" one to the default, and import the stack. Not harder, I suppose, but more scary, with more potential for mistakes.
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.