https://pulumi.com logo
Title
p

purple-train-14007

12/04/2021, 6:12 PM
Is there a way for Pulumi to generate a terraform state file for terraform users to use?
q

quiet-wolf-18467

12/04/2021, 7:02 PM
I'd love to understand your use-case a bit more. Why Pulumi to generate a plan and Terraform to execute?
b

billowy-army-68599

12/04/2021, 7:15 PM
there isn't currently a mechanism to generate a state file, the state is completely different and we don't expect to ever support terraform state. However, if you're using the Pulumi state backend, you can use this terraform provider (built by a community user) https://github.com/transcend-io/terraform-provider-pulumi it'll allow you to access exported outputs from the state inside Pulumi's service
😄 1
r

rapid-raincoat-36492

12/05/2021, 6:07 AM
And feel free to yell at me in a DM if that tool doesn't work for you, it's still pretty new 😄 I'm currently writing a blog on how to incrementally move over from Terraform to Pulumi, which sounds like it may be of help Topher if I can ever finish it. I wrote
terraform-provider-pulumi
as a part of my company's migration to Pulumi, and use it to have the two tools coexist while some infra lives under each tool's control
🙌 1
w

worried-knife-31967

12/05/2021, 4:03 PM
We've gone the opposite direction here... There's a core infrastructure team that want to use Terraform, what we got them to do was build a pulumi stack that is literally just outputs from a terraform remote. That's then part of their build/deploy pipeline, so it's constantly updated. For the opposite to work, you'd need a Terraform provider that can read pulumi state files... not outside the realms of possibility for the community to build, but I can't imagine that being something Pulumi would want to build
r

rapid-raincoat-36492

12/05/2021, 8:29 PM
p

purple-train-14007

12/06/2021, 6:35 PM
Thanks a lot. Ill try that out @rapid-raincoat-36492 . Im having the same usecase as @worried-knife-31967 where I have another team wishing to consume some pulumi stuff but is a terraform team.
👍 1