This message was deleted.
# general
s
This message was deleted.
c
Where can I see an example of a
resources.json
file that import resources with components as parents?
Update, for those who face the same kind of migration: passing
opts=ResourceOptions(import_="cloud-provider-identifier")
makes it much easier!
a
At the moment, it’s not possible to import resources that don’t actually exist in the underlying provider.
import
is essentially a way to tell Pulumi: “grab the underlying state of a resource from a cloud provider”. I think you’ll need to add components and providers after you run the import.
c
@ancient-policeman-24615 Passing
opts=ResourceOptions(import_="cloud-provider-identifier")
did the trick. I am now able to import all legacy resources into my Pulumi state, with components. 🙂
🤔 1
🎉 1