Skip to main content
Knowledge Base

Gruntwork Pipelines: use OpenTofu

Answer

Hello, as a Gruntwork Pipelines user, how can I use the OpenTofu binary and control the version? --- <ins datetime="2024-03-15T15:59:46Z"> <p><a href="https://support.gruntwork.io/hc/requests/110826">Tracked in ticket #110826</a></p> </ins>

pipelines-execute v3.0.0-beta1 includes a new flag `TF_BINARY` which can be set to either `terraform` or `opentofu` (in addition to the existing `TF_VERSION` parameter). By default, starting in v3.0.0 we'll use OpenTofu unless the binary is forcibly set to terraform by the calling workflow.