Adding OpenTofu connector
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:
- Add a check in the current [at]terraform connector that, based on the binary installed on the system, uses terraform or tofu
- Add another entirely new connector for OpenTofu (maybe "[at]tofu")?
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
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?