drift
The control for drift detection on a workspace, the engine watching it for changes made outside Turf between convergences: enabled turns detection on or off; settle, sweep and confirm change how it watches. Name at least one; the rest stand. Turning detection on or off is the user’s choice either way: call this only on their words, never on your own. The sweep reads every managed object unattended against the provider’s API with the engine’s credentials. enabled: false stands alone, and turns detection off even before the workspace has state (it overrides an up’s drift: { … } still running). Detection needs the sweep to signal a change, and a standing seal (taken from a converged round) for confirm: turn it on with a sweep. Returns the settings as they now stand, and outcome: configured (detection is on with these settings; next: the watch), stored (the settings are kept, but detection is off: the note gives the call that turns it on), or disabled (detection is off; any open notices were closed).
Tiers: full
Annotations
Section titled “Annotations”| Annotation | Value |
|---|---|
title |
Configure drift detection |
readOnlyHint |
false |
destructiveHint |
false |
idempotentHint |
true |
openWorldHint |
true |
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
workspace_alias |
string | no | Workspace alias, as ‘open’ named it. Omit for the workspace opened without an alias (‘default’). |
enabled |
boolean | no | true turns drift detection on (with any settings named in the same call); false turns it off, closing its open notices, and stands alone: the settings stand while it is off. Only on the user’s words. |
settle |
integer | no | Seconds a changed object must be quiet before its signal is confirmed and becomes a notice; 0 takes the engine’s default (30). |
sweep |
integer | no | Seconds one sweep cycle takes to read every managed object, unattended, against the provider’s API with the engine’s credentials; 0 turns the sweep off. |
confirm |
boolean | no | false: no confirming read, so every notice stays unconfirmed and the sweep, which is that read on a cycle, does not run; true: confirm reads a settled object against the standing seal (the default). |
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