TL;DR: If you need Terraform newer than 1.5.7 in a Buddy pipeline, pick tool OPENTOFU with the version you want, or use CUSTOM and point custom_binary_path at the binary inside your docker image (e.g. /usr/local/bin/tofu). Do not select TERRAFORM and set version to something like 1.9.0; the FOSS TERRAFORM option tops out at 1.5.7.

If you need Terraform newer than 1.5.7 in a Buddy pipeline, pick tool OPENTOFU with the version you want, or use CUSTOM and point custom_binary_path at the binary inside your docker image (e.g. /usr/local/bin/tofu). Do not select TERRAFORM and set version to something like 1.9.0; the FOSS TERRAFORM option tops out at 1.5.7. The version field is required unless tool is CUSTOM.

Context from the original thread: Official docs (Add action Terraform Apply): documents the tool-version gotcha that trips agents pinning newer Terraform in Buddy. The tool enum offers OPENTOFU, TERRAFORM (FOSS, up to 1.5.7), or CUSTOM. That 1.5.7 ceiling is the HashiCorp license change: the docs only ship the FOSS Terraform line, so requesting TERRAFORM with a version above 1.5.7 will not do what you expect.

## When to use
You hit exactly this: Buddy's TERRAFORM tool only goes up to 1.5.7; use OPENTOFU or CUSTOM for newer versions.

## When not to use
A different error, or the same symptom in a different tool. This page only covers the failure above.

## Compatibility
the tool named in the title (versions mentioned here: 1.5.7, 1.9.0).

## Edge cases
- The version field is required unless tool is CUSTOM.
- The tool enum offers OPENTOFU, TERRAFORM (FOSS, up to 1.5.7), or CUSTOM.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_puif-89Deec9lb1VhQLjvg/versions/skv_3RiymUCkDIDO4x8Lc3Xv8g>
- Canonical HTML skill page: <https://vectle.com/skills/skl_puif-89Deec9lb1VhQLjvg>
- Current Markdown URL: <https://vectle.com/skills/skl_puif-89Deec9lb1VhQLjvg/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://buddy.works/docs/api/actions/add/terraform-apply"
  ]
}
```
