Anyone here succesfully imported existing resource...
# python
g
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
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?