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
GetWorkspace
Read the workspace to confirm it exists and is not locked, since a locked workspace will refuse to queue a new run.
2
createRun
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
GetRun
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
ApplyRun
Confirm the finished plan and apply it, recording the supplied comment against the apply for the audit trail.
5
discardRun
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
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for arazzo workflows
4 MCP tools reach this
find_arazzoBrowse and filter every workflow in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/terraform-plan-and-apply-run-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.