sparse-intern-71089
05/19/2021, 6:52 AMlittle-cartoon-10569
05/19/2021, 8:37 PMlittle-cartoon-10569
05/19/2021, 8:46 PMpulumi stack output --file x.json
).
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 state delete
).
4. Run pulumi import --parent ...
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 preview
to check everything in state matches.