Journey: Your TACO as the control plane
Turf is the engine; your TACO is the control plane. A Terraform automation and collaboration platform — Scalr, HCP Terraform — holds your state, your variables and your policy. Turf plans and applies locally against that control plane: state and locking in the TACO’s workspace, variables read from it, policy evaluated from it, and no TACO-executed run at all.
Example: integrations/scalr in turf-examples — Scalr is the worked instance; the remote
backend is the same for HCP Terraform. Load skill_deployment, and skill_authoring before
beat 2 writes backend.tf and main.tf. One beat at a time; end each on a cue.
What it needs: a TACO account with a state-storage-only workspace (the example’s
setup/ creates one, turf-scalr-chat), and a CLI token for the backend —
turf login <acct>.scalr.io (writes ~/.terraform.d/credentials.tfrc.json) or
TF_TOKEN_<host> in the session’s environment. The variables beat uses the TACO’s MCP
server if the client has one (scalr_* tools); otherwise it uses a tfvars file. Without a
token, run this journey narrated — walk the beats from the example’s README and the
recording at turf.build/demo/scalr — and offer the promotion journey, which shows the same
workspace model locally.
Beat 1 — State in the control plane, plans here (start here, tool-free)
Section titled “Beat 1 — State in the control plane, plans here (start here, tool-free)”Say the split in a sentence. Show the backend block the example’s session writes:
terraform { backend "remote" { hostname = "<acct>.scalr.io" # app.terraform.io for HCP Terraform organization = "<environment-id>" workspaces { name = "turf-scalr-chat" } # state-storage-only: Turf runs the plan, the TACO keeps the state }}Check the prerequisites (the token, the workspace, the MCP server) and say which path this
run takes. Note that integrations/scalr/chat ships no configuration: its .turf/turf.yaml
tells the session to write backend.tf and a main.tf on the first request — keep that
exactly as it is; it is the example.
Your cue — “bind it.”
Beat 2 — Bind state to the TACO
Section titled “Beat 2 — Bind state to the TACO”- Write
backend.tfas above and a minimalmain.tf(random_pet, and avariable "region"for beat 3 to fill — no cloud resources) into<examples>/integrations/scalr/chat(both git-ignored there). init({ path: "<examples>/integrations/scalr/chat", config_alias: "taco" })— reports a declaredremotebackend.open({ config_alias: "taco", workspace_alias: "taco" })— the token comes from the credentials file; passbackend_config: { token }only if the block leaves it out and the environment has none. The result shows the remote state’s lineage and serial.list({ config_alias: "taco" })— the workspaces the backend holds.
Your cue — “pull a variable from it.”
Beat 3 — Variables from the control plane, a notice on the way out
Section titled “Beat 3 — Variables from the control plane, a notice on the way out”- With the TACO’s MCP server: read the workspace’s variables (the example’s
setup/createsregion), and show the value. Without it: a tfvars file. up({ workspace_alias: "taco", var: { … }, overlays: { "announce.turf.hcl": <below> } })— the overlay rides this convergence in memory, nothing written into the example:
action "turf_action" "announce" { config { prompt = "Tell the team a new state version landed in the TACO workspace for this configuration: one line, with your messaging tool. If you have none, fail and say so." inputs = { name = caller.id } }}action_trigger "announce" { target = random_pet.name events = [after_create, after_update] actions = [action.turf_action.announce] on_failure = continue}Present the plan (1 to add, announce in plan.invocations) and say that the engine holds
the TACO’s lock while this plan waits. Approve; apply → awaiting_actions for announce:
post the line if you have a messaging tool; if not, answer succeeded: false with an error
saying so. Either way the apply ends converged — on_failure = continue records the
failed notice as a warning in rounds[].actions. The TACO’s UI now shows a new state
version.
Your cue — “and policy?”
Beat 4 — Hand off to policy
Section titled “Beat 4 — Hand off to policy”Your TACO defines policy too — the example’s setup/ creates an OPA policy group, and the
guardrails journey’s policy beat runs in TACO mode from here:
read_skill_file({ skill_name: "guide", path: "references/guardrails.md" }), beat 6.
Before leaving: the workspace is shared, so if the user wants the pet gone,
destroy({ workspace_alias: "taco" }), approve, apply. Then
close({ workspace_alias: "taco" }), and delete the generated backend.tf /
main.tf so the example is as it ships.
Turf™ is a trademark of Turf LLC. Terraform® is a trademark of HashiCorp. Ansible® is a trademark of Red Hat, LLC, registered in the United States and other countries. Helm®, Kubernetes®, Prometheus® and OpenTelemetry® are registered trademarks, and Jaeger™ is a trademark, of the Linux Foundation. OpenTofu® and Model Context Protocol® are registered trademarks of LF Projects, LLC. All other trademarks are the property of their respective owners. Turf is not affiliated with, endorsed by, or sponsored by HashiCorp, IBM, Red Hat, the Linux Foundation, LF Projects or the OpenTofu project.
© 2026 Turf LLC. Free for individuals, education and small businesses within the Community limits, under the Turf Community Edition License 1.0. Government and larger organizations need a commerciallicense.turf.build · Discord ·GitHub