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:
- The
--tf-pathflag. - The
TG_TF_PATHenvironment variable. terraform_binaryin the unit’sterragrunt.hcl.terraform_binaryin a file the unit includes.tofuif it is on yourPATH, otherwiseterraform.
Examples
terraform_binary = "/usr/local/bin/tofu"