No, pulumi cannot create terraform code, and never will. Terraforms engine is not capable of handling the complexity that Pulumi is capable of handling
billowy-army-68599
09/06/2023, 12:21 PM
I would love to hear more about the specifics though
f
fast-sandwich-30809
09/06/2023, 1:38 PM
Could it be possible to generate TF from a pulumi plan file, as output from a preview operation? That should be deterministic enough - but it would be a one-off operation; unless you could sync tfstate and pulumi state
b
billowy-army-68599
09/06/2023, 1:40 PM
no, the formats are entirely different. Additionally, the way the engine interprets those operations is completely distinct.
billowy-army-68599
09/06/2023, 1:40 PM
I’d love to get an understanding of why TF code specifically is needed.
billowy-army-68599
09/06/2023, 1:42 PM
it’s basically not possible to express Pulumi’s logic in Terraform’s engine.