Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for OpenTOFU #44

Open
dantefromhell opened this issue Dec 10, 2023 · 4 comments
Open

Support for OpenTOFU #44

dantefromhell opened this issue Dec 10, 2023 · 4 comments

Comments

@dantefromhell
Copy link

Will this project be able to support OpenTOFU as a replacement for the official TerraForm?

@dee-kryvenko
Copy link
Member

I think it is already although I never tested it. Standalone mode doesn't care what makes requests to it, as long as they haven't changed the API for the http backend - it will work. Wrapper mode always had --tf as well as wrapper.tf.bin option to customize path/command it is using. It is meant for things like tfenv but I suppose it should work just fine for opentofu. If opentofu consider pluggable backends support, which Hashicorp been refusing to do for ages, we can make it work even better than it ever could for Hashicorp's Terraform. But I personally making no commitments yet. I am still wondering what the future is for both tf and opentofu and whether it is worth investing any more time into either. In the meantime I am exploring some cool new alternatives such as Crossplane.

@kvendingoldo
Copy link

At this moment if you need to have a support of Terraform as well as OpenTofu (and Terragrunt :) ) in one tool you can use https://github.com/tofuutils/tenv which my team wrote some months ago. A lot of users switched to that tool to unify version management in the world of Terraform.

You're welcome to open any issues or contribute to tenv.

@thehale
Copy link

thehale commented Apr 17, 2024

I actively use this tool with OpenTofu by simply renaming the tofu binary to terraform.

For example,

mv $(which tofu) /usr/bin/terraform

@dee-kryvenko
Copy link
Member

dee-kryvenko commented Apr 20, 2024

@thehale you can also use --tf or wrapper.tf.bin to give it a path to open tofu. Again, I have not yet tried that myself, but that option existed in the backend long before opentofu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants