fierce-ability-58936
12/15/2022, 7:27 PMpulumi import
but that doesn't 100% fit either. We can construct an import json from the terraform file, but making the right hierarchy will be tricky.
3. None of the above is scalable!
So I was thinking: is there an easy way to modify Pulumi in the following way:
1. Add another flag to pulumi import
, say --import-existing
or something.
2. Pulumi will have all the information about the resource hierarchy and it should be able to query for existing resources.
3. If existing resources match the code (by id?), import them into the state. Those resources don't have to be a perfect match.
Does it make sense? Does it sound hard to implement?billowy-army-68599
12/15/2022, 7:33 PMfierce-ability-58936
12/15/2022, 7:34 PMechoing-dinner-19531
12/15/2022, 8:00 PMpulumi config --from tf --langauge typescript
and get back the typescript files and pulumi stacks for all the terraform workspaces.fierce-ability-58936
12/15/2022, 8:23 PMechoing-dinner-19531
12/15/2022, 9:27 PMsalmon-gold-74709
12/18/2022, 9:22 AM