pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

Adding OpenTofu connector

Open Destewie opened this issue 3 months ago • 2 comments

The terraform connector is basically it!

I would really enjoy an OpenTofu connector and I think that its code would be 99% the same as the terraform

The possibilities i can think of

I see two major possibilities:

  1. Add a check in the current [at]terraform connector that, based on the binary installed on the system, uses terraform or tofu
  2. Add another entirely new connector for OpenTofu (maybe "[at]tofu")?

Destewie avatar Aug 22 '26 23:08 Destewie

Thanks for the suggestion. An OpenTofu connector makes sense given how close it is to the terraform one.

Before we pick between option 1 and 2, there is an open question on our side: we are still debating how to handle new connectors in general, whether they should live in separate repos or inside the main repo. No decision has been taken yet, and the answer directly affects where an OpenTofu connector would land.

Come chat about this on Matrix: https://matrix.to/#/#pyinfra:matrix.org

wowi42 avatar Aug 25 '26 05:08 wowi42

Happy to take this if it helps. Would the smaller option 1 (the existing @terraform connector falling back to the tofu binary when terraform is absent, plus a test) be acceptable in-tree while the separate-repo question is still open, or would you rather wait for that decision before any PR?

ynaamane avatar Oct 14 '26 12:10 ynaamane