Skip to content

terraform_binary

unitoptional(string, "tofu")

Usage

The terraform_binary attribute sets the OpenTofu/Terraform binary Terragrunt calls.

Precedence

Terragrunt uses the first of these that is set:

  1. The --tf-path flag.
  2. The TG_TF_PATH environment variable.
  3. terraform_binary in the unit’s terragrunt.hcl.
  4. terraform_binary in a file the unit includes.
  5. tofu if it is on your PATH, otherwise terraform.

Examples

terragrunt.hcl
terraform_binary = "/usr/local/bin/tofu"