https://pulumi.com logo
#python
Title
# python
g

gray-tailor-20387

04/29/2020, 10:38 AM
Anyone here succesfully imported existing resources into pulumi? Right now i'm using this attribute once to read the existing resource from the cloud.
opts= pulumi.ResourceOptions(id= 'id_of_the_fm'),
Then i comment out the line and try to add all attributes to be the same to the current state. (can't add some like status= 'active'). Up until now i keep getting a replacement of my resource, which i don't want when importing running vm's. Thanks in advance for reading.
w

white-balloon-205

04/30/2020, 3:02 AM
As @sparse-state-34229 noted below - the resource option you need here is
import_
not
id
. Hopefully it works as expected if you make that change?