https://pulumi.com logo
b

broad-boots-45639

02/14/2020, 6:06 PM
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

handsome-actor-1155

02/14/2020, 6:08 PM
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

broad-boots-45639

02/14/2020, 6:10 PM
Gotcha
h

handsome-actor-1155

02/14/2020, 6:11 PM
Also, you can do
pulumi up -r
to do a refresh on
up
💡 1
b

broad-boots-45639

02/14/2020, 6:24 PM
Thank you!