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.