Hello. I've been exploring switching from tf to pu...
# general
a
Hello. I've been exploring switching from tf to pulumi, but I have a ton of reusable tf modules used in a bunch of projects. I'd like to be able to swap the application specific iac to pulumi for everything going forward and eventually work my way back through the modules and other projects. Is there any way for pulumi to interop with those modules?
p
I asked the pulumi AI for you: https://www.pulumi.com/ai/ It says: Yes, you can use Terraform modules within Pulumi by using the
pulumi/terraform
provider. This allows you to call Terraform modules and use their outputs in your Pulumi programs.
a
thank you for the resource. I didn't know there was an llm to ask. It looks like its suggesting something that doesn't exist. The terraform provider appears to just read tf state for outputs and is not able to invoke modules directly. I'm going to keep searching, but I found a github repo with someone doing exactly what I'm looking for, but it's python specific.
p
Ah, sorry, it is rather prone to inventing the thing you ask it for. I don't have any real experience with running Terraform from within pulumi, so can't help further.
Although that's not quite what you need
a
^ the convert tool is super cool and I would personally love it, but adoption at my company kinda hinges on being able to use modules directly. The competition is cdktf which obviously can since its essentially a tf wrapper.
I appreciate the help tho!
w
@abundant-plastic-82046 just wondering if you have looked into the new “any tf provider” solution pulumi release recently. It might solve what you are looking for. https://www.pulumi.com/blog/any-terraform-provider/
a
@white-vase-18996 this is a great development, but appears to be providers only and not modules. The roadblock I have to overcome is how to interface with an existing library of terraform modules that will continue to be terraform modules until there is enough time to go around and convert them.
maybe theres a way to make the modules act like providers and bridge on top of that?