Skip to content

Terraform workflow

ScrinCloud treats Terraform delivery as a sequence of evidence-bound stages. Code, plan, policy, cost, approval, and apply do not collapse into one action.

Typical time
20–60 minutes
You need
A project and saved workspace revision
Outcome
A governed run record
Stage Product action Evidence to review
Prepare Generate, import, edit, and Save All Saved workspace revision
Format Format run Formatting status and logs
Validate Validate run Terraform validation result
Plan Plan run Exact revision, provider, region, and change summary
Policy Policy check or Run guardrails review Findings, scanner status, gates, and exceptions
Cost Saved plan cost estimate Assumptions, trust, unknown impact, policy findings
Approval Reviewer decisions Evidence-bound approval count, gates, comments, expiry
Apply Apply approved plan Exact approved plan and revision
Verify Run details and resource map Status, outputs, reconciliation, and audit evidence
Synthetic New Terraform Run drawer showing the workspace, run type, and review stages for a saved revision.
Workflow 1 of 4 · Understand the delivery stagesA synthetic controlled-run journey that starts from a saved workspace revision and leads into review.

Open the Terraform editor for the intended project and workspace. Generate or import code, review every file, resolve editor diagnostics, then choose Save All. Terraform Runs can only start from a workspace with a saved latest revision.

See Prepare Terraform code.

Synthetic Terraform editor with harmless documentation-only code and a visible Save All action.
Workflow 2 of 4 · Save the reviewed workspace revisionA synthetic Terraform editor with harmless example code, diagnostics, and the Save All control.

Open Runs, select the project, and choose New run. The create drawer offers Format, Validate, Plan, and Policy check for the latest saved revision.

Run the smallest useful check first. A successful Plan is a proposal, not permission to apply.

Synthetic Terraform run type choices with Plan selected and Format, Validate, and Policy Check available.
Workflow 3 of 4 · Start a controlled Terraform runSynthetic controlled run types with Plan selected alongside Format, Validate, and Policy Check.

Open the successful plan in Run Library. Review:

  • project, workspace, environment, actor, provider account, and region;
  • creates, updates, replacements, and deletes;
  • mapped and unmapped resources;
  • policy scanner and OPA status;
  • cost estimate, assumptions, trust, and unknown impact;
  • approval gates, eligible reviewers, comments, and expiry; and
  • the revision and plan evidence identity.

If code, policy, provider connection, cost evidence, or plan changes, run and review a new plan. Approval cannot be transferred to a different plan.

Apply approved plan is available only from a successful plan with a current approved governance review. Confirm the high-impact action, then monitor the new apply run.

After completion, inspect status, timeline, resource map, logs, and safe artifacts. Do not treat a queued, running, failed, timed-out, or partially reconciled run as successful.

Synthetic confirmation dialog asking the reviewer to apply an approved Terraform plan.
Workflow 4 of 4 · Apply the approved plan and verify evidenceThe governed confirmation required before an approved Terraform plan can start an apply run.
  • Never apply from an older or changed revision.
  • Never interpret Format, Validate, or Policy check as a plan.
  • Never interpret a successful plan as approval.
  • Never bypass a blocking policy, cost rule, approval gate, or reviewer floor.
  • Never copy raw Terraform state or sensitive plan content into tickets.
  • Use break-glass only for an approved emergency workflow with independent review and required post-event evidence.

The workflow is complete only when the intended apply run reaches a successful terminal state and its exact revision, plan, governance, cost, provider, and audit evidence can be reviewed.

No workspace is available in New Terraform Run

Section titled “No workspace is available in New Terraform Run”

Save a Terraform workspace revision first and confirm it belongs to the selected project.

The plan must be successful and its governance review must be currently APPROVED. Resolve stale, expired, blocked, rejected, cost, exception, or reviewer-gate states.

Review queue status and estimated start information. Do not submit duplicates; run creation uses idempotency controls.

Source code, API routes, Terraform wiring, and deployment matrices define the workflow. They do not prove a particular environment executed a live plan or apply. Live proof requires an approved runtime run and retained evidence.