terraform-github-actions icon indicating copy to clipboard operation
terraform-github-actions copied to clipboard

OpenTofu support

Open kislerdm opened this issue 2 years ago • 5 comments

Suggestion

@dflook Hey Daniel, would you be open to extending your great set of actions to support OpenTofu? It'd enable the community to try OpenTofu and help many engineers and organisations with migration. I'd be more than happy to contribute and help delivering required changes.

Thanks!

kislerdm avatar Oct 20 '23 13:10 kislerdm

Hi @kislerdm, yes I think this will be an experimental option in the next release🙂

dflook avatar Oct 20 '23 13:10 dflook

@dflook Great! Thank you for prompt reply!

kislerdm avatar Oct 20 '23 13:10 kislerdm

Awesome, looking forward to use it !

Ant0wan avatar Oct 21 '23 20:10 Ant0wan

This has been added in v1.37.0. New tofu actions have been added that are identical to the terraform actions, but use OpenTofu instead of Terraform for versions >= 1.6.0:

As OpenTofu currently only has pre-release versions, OpenTofu will only be selected by using the exact version number. The easiest way to do this is by setting the OPENTOFU_VERSION environment variable, e.g in your workflow:

  env:
      OPENTOFU_VERSION: 1.6.0-alpha3

Setting OPENTOFU_VERSION with the dflook/terraform-* actions will cause it to behave as if it was the dflook/tofu-* action.

dflook avatar Oct 29 '23 15:10 dflook

@dflook Hey Daniel! Thank you very much for your effort, much appreciated! 🚀

kislerdm avatar Oct 29 '23 21:10 kislerdm