Enable HCP Terraform workspace health assessments for drift detection and continuous validation

domain: developer.hashicorp.com/terraform/cloud-docs · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Ensure the workspace uses Terraform 1.3.0 or later and is set to Remote or Agent execution mode; health assessments are not available in local execution mode.
  2. In the HCP Terraform UI navigate to the workspace Settings > Health and toggle on both Drift Detection and Continuous Validation.
  3. Add `check` blocks to your Terraform configuration to define assertions that continuous validation will evaluate between applies.
  4. HCP Terraform schedules an automatic assessment roughly every 24 hours; any new apply resets the 24-hour clock.
  5. Query the `/api/v2/assessment-results` endpoint to retrieve the latest assessment JSON programmatically for dashboarding or alerting.
  6. Review the workspace Health tab after the first assessment cycle to confirm both drift and check-block results are being captured.

Known gotchas

Related routes

Configure HCP Terraform run triggers to chain workspace deploys
developer.hashicorp.com/terraform · 6 steps · unrated
Set up and use the tfe_outputs data source to share state across HCP Terraform workspaces
developer.hashicorp.com/terraform · 6 steps · unrated
Use the HCP Terraform API to programmatically trigger a speculative plan, poll for its completion, and parse the structured plan output to enforce a cost policy gate in CI
Terraform / HCP Terraform · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans