better-shampoo-4888405/19/2021, 6:52 AM
I'm guessing the
bit is what's going to change. Initial thought: export the stack + search and replace + reimport stack? Any other ideas? Doing
on each one is.. just not going to work, besides taking a huge amount of time, it will just be really really really tricky to ensure I have the right URN specified for each resource.
little-cartoon-1056905/19/2021, 8:37 PM
). 2. Comment / flag out all the resources that will be changing, so that you create all their parents correctly without importing anything. 3. Comment / flag out the original resources and remove them from state (
pulumi stack output --file x.json
). 4. Run
pulumi state delete
to import the resources to the correct place. 5. Comment / flag in the new code for the resources, making it look like the code that Pulumi generated. 6. Tidy up old commented / flagged-out code. 7.
pulumi import --parent ...
to check everything in state matches.