Question about importing resources to Pulumi after...
# general
b
Question about importing resources to Pulumi after reading: https://www.pulumi.com/blog/adopting-existing-cloud-resources-into-pulumi/ My impression is that I can reference existing infra with Pulumi for future objects. But if someone, for example, nuked my manually-created vpc imported by Pulumi I wouldn’t be able to use Pulumi to bring it back up. Is this correct, or is there another method for taking over control of existing resources?
h
I think what you’d need to do is run
pulumi refresh
to let Pulumi know that the resource is gone then run
pulumi up
again to recreate that deleted resource
Once it’s imported, it’s technically no longer a manually created resource
b
Gotcha
h
Also, you can do
pulumi up -r
to do a refresh on
up
💡 1
b
Thank you!