Hello! I'm trying to move a resource from one stack to another, but it complains about the provider already existing, which it does. I'm not sure how to solve this:
Copy code
pulumi state move \
--source nextgen/app/prod \
--dest nextgen/scaleway-iam/prod \
'urn:pulumi:prod::app::scaleway:account/project:Project::merlin-prod'
error: provider urn:pulumi:prod::scaleway-iam::pulumi:providers:scaleway::default_1_25_0_github_/api.github.com/pulumiverse already exists in destination stack
a
able-ability-55163
05/30/2025, 3:50 PM
you may have better luck by deleting it from the state of the old stack and then importing it into the new stack
i haven't tested it, but i doubt pulumi enforces unique resources across stacks, so you should be able to import into the new stack before deleting (from the state only) from the old stack.
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.