This message was deleted.
# general
s
This message was deleted.
l
Sounds like double-handling to me.
s
I thought pulumi could read terraform state and then you could use it to import? Never done it but thought i read somewhere i read it
l
You can import terraform state to Pulumi state, but (afaik) it won't write the code for you. You still have to describe the state in code.
My approach, on an admittedly-small set of infra, was to write Inspec tests for everything in TF, then migrate bits in logical order.
So long as the tests continued to pass after to moving to Pulumi, it got the tick,
Took a couple of months to fit it in among our normal workload. Haven't finished, but the stuff that's left in TF simply hasn't changed and isn't ever likely to, so our priority for migrating it is very low
p
Yeah that's kind of what I am worried about is being in a bad hybrid state. But the fact I can eat state from TF may help.
I am trying to push as self service here.
Easier, don't have to learn hcl, may be devs can do some of the work I am otherwise overloaded with.
s
You can use the state reader in
pulumi-terraform
to help with migratino if you have existing stuff provisioned
You can also use
tf2pulumi
to get a good first approximation of a terraform configuration as a pulumi program
p
Thanks. I tried the tf2pulumi but no dice on anything complicated. Still, it's not like I expect no grind ;)
b
So, I'm probably stealing @broad-dog-22463's thunder here, but we do have a new import command.... https://asciinema.org/a/mvR7yRTWm8HY8CABzIJ0Am0v9
👏 1
🎉 1
p
Oh this is super awesome.
When's it released? Any caveats?
b
It is already released - we’ve just dark launched it so we can add proper docs for each resource
They will start appearing this week!
l
Ooo I wonder if I have time to try this out on my last 10 or 20 tf files....
b
@little-cartoon-10569 there is a way you can pass an entire JSON file of resources and the import command will loop through it 🙂
l
Nice. Does terraform produce such a json file?
b
tf2pulumi is probably what you want for your tf files
l
Oh no, I don't want to have to resurrect my tf files.. dead and buried...