Compatibility · Terraform 1.16 · OpenTofu 1.13 · Turf 1.5
Turf™ runs the Terraform® language on the OpenTofu® framework — the whole expression language, the function library, registry modules and the provider ecosystem, unchanged. Under it is an engine Terraform and OpenTofu don’t have. Where a construct isn’t supported, Turf refuses loudly — it never silently mis-plans — and says so here.
Eight things the engine does that neither Terraform nor OpenTofu does in full.
| Capability | Terraform 1.16 | OpenTofu 1.13 | Turf 1.5 | Notes |
|---|---|---|---|---|
| Resumable plan and apply | ➖ | ➖ | ✅ | Every step of a run is journaled as it happens. Kill the laptop, restart the pod, drop the client: the run resumes at the step it was on, with nothing re-planned. A plan waiting for approval holds no process. Terraform and OpenTofu lose a killed apply: partial state, and a plan to make again. The engine → ahead |
| Provider calls that scale out | ◑ | ◑ | ✅ | Refresh, plan and apply fan out per resource until the cloud API, not the tool, is the ceiling. State is kept per resource inside the engine, and the statefile your backend holds is written from it as the run goes, so no provider call waits on one file. On a laptop, or in the cluster as several replicas behind one address, where a run’s steps land on any of them. Terraform and OpenTofu run one process with a -parallelism knob. ahead |
| Encryption at rest | ➖ | ✅ | ✅ | OpenTofu state encryption, with a passphrase or a key provider. Migrating an existing state is a no-op run; enforced refuses plaintext. It protects the statefile your backend writes; the engine’s own store relies on the disk encryption under it. Terraform has none. |
| OpenTelemetry® built in | ◑ | ◑ | ✅ | Every run is traced as it happens: a span per call and per attempt, over OTLP to Jaeger™ or any collector, and metrics in Prometheus® format. Terraform and OpenTofu trace the CLI process, as an experiment. The engine traces the run. ahead |
| Terraform actions, with overlays | ✅ | ➖ | ✅ | The Terraform 1.16 action model: six lifecycle events, on_failure halt, continue or taint, a plan-time condition, caller, and invoke for an ad-hoc run. Then Turf’s overlays: a *.turf.hcl file adds an action_trigger with a target to any module, per environment or in memory for one run. OpenTofu has no action blocks. ahead of OpenTofu |
| Agent hooks | ➖ | ➖ | ✅ | A turf_action is a step the configuration asks the agent to take during the apply: a check, a notification, a question for the user. The apply stops, the agent answers with its own tools, and the decision stays the user’s. Any MCP client, no provider to install. ahead |
| Multi-round convergence | ◑ | ➖ | ✅ | One up plans what it can, defers what this round can’t know (an unknown count, a provider configured from an endpoint that doesn’t exist yet, a custom resource ahead of its CRD), applies, and plans again until nothing is deferred. A run that can’t progress ends stalled and says why. Terraform Stacks, on HashiCorp’s hosted platform, do this: a convergence check replans after every applied step until the plan is empty. Terraform itself has deferral only as an experiment in its alpha builds. OpenTofu has none. Turf converges any configuration, on a laptop or in the cluster. Watch a stack converge → ahead |
| Continuous drift detection | ◑ | ➖ | ✅ | The engine watches a workspace between plans: a paced sweep of provider reads over every object it manages, on a cycle you set. A sensor that reports changes in a Kubernetes® cluster as they happen: coming soon. One read confirms each signal and classifies it against the Terraform configuration; status churn, Turf’s own applies and ignored fields wake nobody, and what holds up reaches the agent as a drift notice, through watch, status, the console or a webhook. The engine detects and notifies; the fix is a plan, approved like any other. Terraform and OpenTofu see drift when someone runs a plan. Health assessments, on HashiCorp’s hosted platform, run a plan of each workspace on a schedule and notify. Drift, between plans → ahead |
The engine runs on Restate, in Restate’s words “a lightweight runtime to turn AI agents, workflows, and backend services into durable processes.” Its journal is what makes a run resumable, and what lets a run’s steps land on any replica. How the engine is built →
Every construct, scored against Terraform 1.16 and OpenTofu 1.13. A refusal names the construct and its remedy; nothing is skipped and planned past.
| Construct | Terraform 1.16 | OpenTofu 1.13 | Turf 1.5 | Notes |
|---|---|---|---|---|
resource | ✅ | ✅ | ✅ | Managed resources at every module depth, with count and for_each. |
data | ✅ | ✅ | ✅ | Read once per plan, in dependency order. A read whose query is unknown, or whose depends_on target has a pending change, moves to the apply, as in Terraform. The value the plan read is the value the apply commits, so what you approved is what is stored. |
module | ✅ | ✅ | ✅ | Registry, git and local sources, installed by init and locked. A call is held to the child’s declarations before the walk: a missing required input and an undeclared argument are refused together, so a typo appears beside the input it failed to set. A local source may sit outside the configuration directory, so sibling roots can share their modules: every relative path resolves from the configuration directory, as after tofu -chdir. With more than one engine replica, a module source not pinned to one revision (a git ref, an exact registry version) that two replicas fetch differently fails the round and names the module, until it is pinned. |
variable | ✅ | ✅ | ✅ | The full ladder: declaration defaults, then TF_VAR_, then terraform.tfvars and *.auto.tfvars(.json), then var_file in the order listed, then var. Types convert, nullable applies, and validation blocks run at plan; a rule decidable only after an apply is decided then. Values ride the convergence and are never stored. |
output | ✅ | ✅ | ✅ | Outputs at every depth, with depends_on; a sensitive value must be declared sensitive. A child module’s output may be declared ephemeral and carries its secret into the caller, to a write-only argument or a provider block; a root output may not, as upstream rules. A root output may read one through ephemeralasnull(). Not yet: a destroy through a provider block that reads one. Refused: an output precondition. |
locals | ✅ | ✅ | ✅ | Fully honored. |
provider | ✅ | ✅ | ✅ | The configuration is the only source of provider configuration: each provider block is evaluated at every plan, in dependency order, against state and the plan so far. A block reading a value not yet applied configures the provider next round. Root module only: a provider block in a child module is refused (the legacy shape; the module declares configuration_aliases and the call passes providers). |
terraform {} settings | ✅ | ✅ | ✅ | required_providers constraints are enforced and .terraform.lock.hcl is honored, checksums verified; a lock change makes a paused plan stale. |
terraform.required_version | ✅ | ⚠️ | ⚠️➖ | Parsed, not enforced. Coming soon. (OpenTofu checks it in .tofu files only.) |
backend | ✅ | ✅ | ✅ | The declared backend block is what a workspace opens; backend_config supplies only what the block leaves out, per key — the tofu init -backend-config pattern — and reconfigure moves a store deliberately. The remote backend works for state storage and locking, with the workspace’s execution mode set to local. Encryption: see above. |
cloud block | ✅ | ✅ | ⛔ | Refused. Use backend "remote" against a workspace whose execution mode is local. |
provisioner / connection | ✅ | ✅ | ⛔ | Refused by name, inside removed blocks too: there is no provisioner runtime, so nothing runs silently. Use a provider action bound to the event, or a turf action. |
moved | ✅ | ✅ | ✅ | Runs against state before the plan, so a rename plans as a no-op rather than a create plus an orphan destroy; chains collapse, a module rename carries everything inside it, and the relocation commits only when the round applies. An import into an address a move vacates the same round is refused: apply the move first. |
import block | ✅ | ✅ | ✅ | Adopted at plan: the entry reads as a no-op or an update against the real object, and you review the diff before anything is committed; for_each, computed keys and nested-module targets resolve. Root module only (Terraform 1.16 allows the block inside modules). An id, key or for_each unknown at plan defers the import to a later round, where Terraform refuses. Turf generates no configuration: the agent writes the block. |
removed | ✅ | ✅ | ✅ | lifecycle { destroy = false } forgets the object and leaves it running. Provisioners inside the block are refused. |
check | ✅ | ✅ | ⛔ | Refused by name rather than planned past. Coming soon; meanwhile an after_create or after_update turf action verifies the same thing, or a policy check runs on the plan. |
action + action_trigger | ✅ | ➖ | ✅ | The Terraform 1.16 action model, carried by Turf. OpenTofu has no action blocks. ahead of OpenTofu |
*.turf.hcl overlays | ➖ | ➖ | ✅ | Turf’s extension: action blocks and top-level action_trigger blocks with a target, laid over the configuration at every plan. tofu and terraform ignore the file by its name. |
ephemeral resource | ✅ | ✅ | ✅ | A value a provider produces that participates in evaluation and never reaches state: open, renew and close all fire, and an exported plan withholds it. One instance each: count, for_each and conditions on an ephemeral resource are refused. |
| write-only arguments | ✅ | ✅ | ✅ | The one channel an ephemeral value has into a managed resource: admitted at a write-only path, refused everywhere else, null on both sides of every plan; a provider that echoes a value back is refused. Rotating a secret reads as a replacement where the provider declares it so. |
List resources / list block / query | ✅ | ➖ | ➖ | The Terraform 1.14 query paradigm for bulk discovery and import. Coming soon; OpenTofu doesn’t have it either. |
| resource identity (provider-declared) | ✅ | ✅ | ✅ | Read on plan, apply and import and stored in the state record, so a state carrying identity round-trips unchanged and what Turf writes is a plain OpenTofu state. |
| identity-based import | ✅ | ✅ | ✅ | identity = { … } in an import block or the import command, validated against the provider’s identity schema before the call. |
| Meta-argument | Terraform 1.16 | OpenTofu 1.13 | Turf 1.5 | Notes |
|---|---|---|---|---|
count | ✅ | ✅ | ✅ | Resources, data sources and module calls. An unknown count defers the instances to a later round instead of failing, and adding or removing count on an existing object relocates it without a moved block. |
for_each | ✅ | ✅ | ✅ | Same as count. Cardinality is the OpenTofu evaluation: toset([]) is zero instances, a map with unknown values still enumerates, and a set with an unknown element defers. |
enabled | ➖ | ✅ | ⛔ | Refused by name on module calls, resources and data sources. Coming soon; meanwhile count = var.enabled ? 1 : 0. (OpenTofu 1.11; absent from Terraform.) |
depends_on | ✅ | ✅ | ✅ | Modules, resources and data sources; a data source whose target has a pending change reads at apply, the Terraform rule. Outputs too. |
lifecycle.create_before_destroy | ✅ | ✅ | ✅ | Dependents see the new object as soon as its create applies; the old one is deposed and deleted after. |
lifecycle.prevent_destroy | ✅ | ✅ | ✅ | Honored as OpenTofu 1.12 honors it: a plan that would delete or replace the object fails naming it, in up and in a destroy, and nothing is applied. An expression is accepted, as in OpenTofu (Terraform takes only a literal), so prevent_destroy = var.protect guards while true. destroy = false overrides it. |
lifecycle.ignore_changes (incl. ["all"]) | ✅ | ✅ | ✅ | Honored in full, at plan and at apply. |
lifecycle.replace_triggered_by | ✅ | ✅ | ✅ | A whole-resource reference fires on anything that leaves a different object behind, an attribute reference on a value that moves. It is also how a replaced host takes its contents with it: the contents’ delete runs this round through the old host, and their create defers to the next round against the new one. |
lifecycle.precondition / postcondition | ✅ | ✅ | ✅ | On resources and data sources. Refused on ephemeral resources and on outputs. |
lifecycle.action_trigger | ✅ | ➖ | ✅ | Six events, on_failure halt, continue or taint (taint on after_create only, as in Terraform), a plan-time condition, and keyed entries per instance. Declarable in the resource, or as a top-level trigger in an overlay. ahead of OpenTofu |
provider / providers = {} | ✅ | ✅ | ✅ | Resource provider = and module providers = {}, validated against configuration_aliases; a child module may use different local names than its caller. Provider instance keys are refused. |
timeouts {} | ✅ | ✅ | ✅ | Decoded against the provider’s schema and sent with the request, as any nested block is; the provider enforces its own deadlines. |
| Feature | Terraform 1.16 | OpenTofu 1.13 | Turf 1.5 | Notes |
|---|---|---|---|---|
for-expressions, conditionals, splat, dynamic blocks, string templates, full builtin function library | ✅ | ✅ | ✅ | The whole expression language and builtin function library, inherited from the OpenTofu framework — no function allow or deny list. |
provider-defined functions (provider::…) | ✅ | ✅ | ✅ | A provider’s own functions, such as provider::kubernetes::manifest_decode or provider::time::rfc3339_parse, and the built-in terraform provider’s encode_tfvars, decode_tfvars and encode_expr, anywhere an expression is evaluated. A module calls the providers its own required_providers declares, and the apply calls the version the plan resolved. Each call goes to the provider unconfigured, as Terraform makes it; OpenTofu calls the configured provider, so a function a provider registers only once configured is not found here. |
path.module / path.root / path.cwd | ✅ | ✅ | ✅ | path.module and path.root are spelled as OpenTofu spells them, relative to the root module. path.cwd is the configuration directory, the -chdir model: an MCP client’s own directory is not something the protocol tells a server. |
terraform.workspace | ✅ | ✅ | ✅ | The workspace the plan runs against, carried into every child module. |
caller (in action configs) | ✅ | ➖ | ✅ | The triggering resource: its planned value before a create or update, its applied value after, its prior value on destroy events, where the whole config freezes at plan. ahead of OpenTofu |
| Feature | Terraform 1.16 | OpenTofu 1.13 | Turf 1.5 | Notes |
|---|---|---|---|---|
-target | ✅ | ✅ | ⛔ | Not offered: every plan is the whole configuration, so no partial apply hides a dependency. To leave something out of a run, the configuration stops declaring it. |
-exclude | ➖ | ✅ | ⛔ | Same as -target. (A flag only in OpenTofu; Terraform has no -exclude.) |
-refresh-only | ✅ | ✅ | ✅ | The refresh command: a one-round refresh-only convergence, approved like any plan. |
-refresh=false | ✅ | ✅ | ✅ | plan with refresh: false skips refreshing managed objects for that round; data sources are read at every plan regardless. |
| refresh scoped to what drifted | ➖ | ➖ | ✅ | Terraform and OpenTofu refresh inside every plan, one read per managed object. plan with refresh_drift reads the objects the workspace’s open drift notices name; every other row plans from its record, and one that then plans a change is read and planned again, so nothing is applied over a stale read. The result counts the rows left unread, and with no notice open the plan reads everything. (Terraform 1.17 adds -minimal-refresh, which plans from state and reads a row only when it plans a change; OpenTofu has no equivalent.) ahead |
| drift checks between plans | ◑ | ➖ | ✅ | Continuous, not scheduled: see Where Turf is ahead. On HashiCorp’s hosted platform a health assessment is a speculative plan of the whole workspace on a schedule; it reports, notifies and changes nothing. Terraform and OpenTofu themselves have no scheduler: a drift check is a plan someone runs. ahead |
-var-file | ✅ | ✅ | ✅ | Applied in the order listed and parsed once when the plan starts; a file that fails to parse refuses the call. |
-var | ✅ | ✅ | ✅ | The top of the ladder (see variable). var always wins over var_file: no interleaving. |
-replace | ✅ | ✅ | ✅ | plan with replace, for that round only, or taint. |
-auto-approve | ✅ | ✅ | ⛔ | Not offered: a round with changes is approved by apply with that plan’s digest, by the agent under your rules or by you, and a round with nothing to apply needs no approval. The CLI’s --yes answers the agent’s confirmations for you as each plan comes, a destroy’s included; nothing is approved before its plan exists. |
| destroy | ✅ | ✅ | ✅ | Plans everything in state, dependents first, and leaves the files untouched. A before_destroy action only warns here, so the approval is the guard; prevent_destroy refuses the plan. |
import (command) | ✅ | ✅ | ✅ | An import-only round: stops at its plan gate, plan reads the targets and nothing else, apply by its digest records them, and the next up shows the diff. |
-invoke | ✅ | ➖ | ✅ | invoke runs one action now: one the configuration declares, or an ad-hoc action laid over it in memory. ahead of OpenTofu |
taint / untaint | ✅ | ✅ | ✅ | Immediate state edits; the next up replaces the instance. |
| saved planfile round-trip | ✅ | ✅ | ✅ | A run with plan_only ends planned, and the engine keeps its plan as a planfile for 24 hours; apply with the planfile and its digest applies it later, from another server with its own credentials if you like. The apply checks the state, the configuration and the digest have not moved since the plan. The planfile lives in the engine, not in a .tfplan file on disk. Every plan is the OpenTofu json-format plan, served as a resource and consumable by OPA, Checkov and terraform-docs as it is. |
provider for_each (multi-instance providers) | ➖ | ✅ | ⛔ | Refused: one aliased provider block per instance. Coming soon. (Only in OpenTofu; Terraform has no provider for_each.) |
| state / plan encryption | ➖ | ✅ | ✅ | See Where Turf is ahead. (A feature only in OpenTofu.) |
| early variable evaluation | ✅ | ✅ | ✅ | var in a module source or a backend body resolves from the real root variable values, as tofu init resolves them; a missing value is a diagnostic naming the variable. (Terraform since 1.15.) |
.tftest.hcl / .tofutest.hcl test runner | ✅ | ✅ | ⛔ | Test files in the configuration directory are refused. Keep them beside it and run them with tofu test. |
| deferred changes / multi-round convergence | ◑ | ◑ | ✅ | See Where Turf is ahead. ahead |
| Construct / capability | Terraform 1.16 | OpenTofu 1.13 | Turf 1.5 | Notes |
|---|---|---|---|---|
Component config — .tfcomponent.hcl: component (wraps a module) plus stack-level variable / output / provider / removed | ✅ | ➖ | ➖ | Not parsed — Turf has no component block. Stacks is only in Terraform; OpenTofu has none of it. Turf’s multi-environment story is below. |
Deployment config — .tfdeploy.hcl: deployment, orchestrate, identity_token, publish_output / upstream_input, store | ✅ | ➖ | ➖ | Not parsed — no deployment / orchestrate blocks. Only in Terraform. |
| Capability: multi-environment, multi-round deployment | ✅ | ➖ | ◑ | A different model, not the Stacks language: one configuration, a workspace per environment (workspace_name selects the state slot, a var_file carries the environment’s values), promoted by bumping one variable and planning each environment in turn, with an overlay that adds a production-only approval step. Honest caveat: not a single object that rolls out across deployments as a unit, and no orchestrate, identity_token or cross-stack wiring. The example → |
Remote state backends, policy checks, private module registries, org skills — Turf slots into the Terraform automation platform you already run. Complement, not rip-and-replace.