Terraform · Arazzo Workflow
Terraform Plan a Run and Apply or Discard It
Version 1.0.0
Queue a run, poll the plan to completion, then confirm or throw it away.
View Spec
View on GitHub
Infrastructure as CodeCloud InfrastructureDevOpsOpen-SourceHashiCorpArazzoWorkflows
Provider
Workflows
plan-and-apply-run
Queue a Terraform run, wait for the plan, and apply or discard it.
Reads the workspace, creates a run, polls until the plan is no longer in flight, and either applies the confirmed plan or discards a failed one.
1
readWorkspace
Read the workspace to confirm it exists and is not locked, since a locked workspace will refuse to queue a new run.
2
createRun
Queue a plan-only run against the workspace. Auto-apply is disabled on the run itself so this workflow stays in control of the confirmation decision.
3
pollRun
Poll the run until the plan settles, repeating while it is still pending, fetching, or planning, then branching on the terminal plan outcome.
4
applyRun
Confirm the finished plan and apply it, recording the supplied comment against the apply for the audit trail.
5
discardRun
Discard the run when the plan errored, so the workspace is not left holding a pending run that blocks the next one.
Source API Descriptions
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.