Skip to content

Use the Terraform editor

The Terraform editor is a governed workspace for reviewing and revising source. File edits are not cloud changes. Runner actions, approvals, and apply use separate backend-owned workflows.

Typical time
20–40 minutes
You need
A linked, saved Terraform workspace
Outcome
A reviewed source revision and bounded evidence

Confirm Project, Environment, Region, Revision, Connection, and current Run in the expanded header.

Use More editor options to navigate to Runs, Terminal, History, Diff, Architecture Studio, Workspace overview, or Connections. Copy workspace link and Copy workspace ID place context in the browser clipboard; treat identifiers and access context according to your organization’s sharing policy.

Detach editor, Dock editor, theme, and panel controls change only the browser layout.

Terraform editor showing a synthetic linked documentation workspace and the available action and evidence controls.
Terraform editor 1 of 9 · Confirm the workspace and revisionSynthetic editor context showing a linked documentation workspace, its Terraform source, action bar, and evidence tabs.

The file browser supports:

  • Create file and Create folder;
  • search and clear search;
  • Reload workspace files;
  • Rename, Cut, Copy, Paste, and Delete from the context menu; and
  • protected-file restrictions where an item must not be renamed or deleted.

The File menu also provides New File, New Folder, Save, Save All, Rename File, Duplicate File, Download Current File, Download Workspace ZIP, and Close File.

Most text and tree edits remain in the browser’s dirty-file state until a save succeeds. Reloading or leaving with dirty files can invoke unsaved-change protection.

Terraform file browser with a synthetic workspace containing main.tf and variables.tf.
Terraform editor 2 of 9 · Use file actions deliberatelySynthetic file browser with a minimal Terraform workspace and safe file-organization controls.

Use Import Terraform files, Import files, or Import folder only for reviewed source. Confirm the proposed file set, conflicts, rejected paths, and unsafe-file checks before applying the import.

Use Download Current File or Download ZIP only after checking the package boundary. Never include state, saved plans, credentials, environment files, keys, logs, hidden secrets, or unreviewed binaries.

Import and download do not prove source validity and do not run Terraform.

Terraform editor File menu with New File, Save, rename, duplicate, and safe download actions.
Terraform editor 3 of 9 · Review source portabilitySynthetic File menu showing the current-file and workspace ZIP download actions before any transfer occurs.

Step 4: Edit and save the intended revision

Section titled “Step 4: Edit and save the intended revision”

The Edit, Selection, View, Go, and Help menus operate on the current editor or local view. Monaco shortcuts, autocomplete, hover, find, replace, symbol navigation, word wrap, and minimap do not contact a cloud provider.

Choose Save current file, Save, Save all files, or Save All only after reviewing every dirty file. A successful save creates or updates the workspace revision used by later runs.

Editing after a plan makes that plan stale for delivery. Create a new plan and repeat governance review.

Terraform editor with a synthetic unsaved local change and an enabled Save all button.
Terraform editor 4 of 9 · Save a reviewable source revisionSynthetic dirty-file state with Save all enabled before persistence; no save was performed for this capture.

The toolbar exposes:

  • Format for canonical source formatting;
  • Init to prepare the approved runner context;
  • Validate for Terraform configuration validation;
  • Run plan for a real runner-backed plan;
  • Stop while the current editor-started command is active; and
  • Save all separately from runner actions.

Format, init, validate, and plan are backend or runner work, not local editor proof. Wait for the terminal result and the persisted run record. Stop requests cancellation; it does not prove the runner stopped until a terminal status is returned.

Apply is not an editor toolbar action. Use the governed approval/apply flow.

Terraform editor action bar with bounded preparation controls and a disabled Stop button.
Terraform editor 5 of 9 · Separate preparation from applySynthetic editor action bar showing Format, Init, Validate, Run plan, Stop, and Save all before any runner action starts.

The terminal panel renders sanitized runner events rather than unrestricted browser shell access. Controls include:

  • search, Previous match, and Next match;
  • First error and Final result navigation;
  • Wrap lines and timestamp visibility;
  • Download safe logs; and
  • Clear local view.

Clear local view removes only the displayed browser output. It does not delete backend logs, run history, audit evidence, or cloud resources. Review every safe-log download before sharing it.

Terraform terminal panel showing search and navigation controls with a sanitized synthetic status message.
Terraform editor 6 of 9 · Navigate sanitized runner outputTerminal controls with a short synthetic local status message; no runner command or log download was performed.

Open History to select a saved revision and Diff to inspect changed files and source differences. Review the read-only warning, revision identity, changed-file filter, and summary before using evidence in a plan decision.

History and diff are read actions. They do not restore source or change the canvas automatically. If a revision is edited or restored through another workflow, rerun validation and plan against the new revision.

Read-only Terraform revision history showing two synthetic saved revisions and comparison details.
Terraform editor 7 of 9 · Compare exact saved sourceRead-only synthetic revision history with two immutable documentation saves and safe comparison details.

When code-to-canvas sync is offered, open Code Sync Preview and review:

  • Native Resource Updates;
  • Custom Terraform Resources;
  • Code-Managed Resources;
  • Unsupported Resources;
  • Forbidden Resources;
  • safe canvas actions; and
  • variables.

Choose Apply only after forbidden and unsupported scope is understood. Applying the preview changes the design/source relationship; it does not apply Terraform to a provider. Save the resulting diagram and source deliberately, then revalidate.

Code Sync Preview showing a synthetic stale preview and a forbidden-resource warning that blocks applying changes.
Terraform editor 8 of 9 · Review code-to-canvas changesSynthetic Code Sync Preview with native, custom, code-managed, unsupported, and forbidden scope; applying is blocked pending review.

Step 9: Check health and deployment inventory

Section titled “Step 9: Check health and deployment inventory”

Workspace health summarizes backend-owned readiness categories and exposes Refresh. A refreshed health report is not a Terraform plan or provider apply.

Deployed infrastructure shows captured Resources and Outputs from the latest eligible apply evidence. Use Refresh, Load more, search, copy-safe values, and stale-evidence notices carefully.

Sensitive outputs remain hidden. Inventory is a recorded snapshot and can be stale; provider reality and current drift require separate verification.

Workspace Health panel showing a synthetic review-required warning and healthy workspace access evidence.
Terraform editor 9 of 9 · Read health and captured inventorySynthetic Workspace Health evidence showing a review-required warning alongside healthy workspace access; inventory remains a separate captured post-apply view.

Confirm no unexpected dirty files remain, the intended revision is saved, runner actions reached an authoritative terminal state, downloaded material is safe, and any code-sync or inventory evidence is tied to the correct workspace.

The workspace may be read-only, no file may be dirty, a save may already be in progress, or an active terminal action may block the operation.

Review the sanitized final result, workspace health, connection, variables, module access, and saved revision. Do not expose raw logs or broaden provider permissions without a reviewed requirement.

Inventory requires eligible captured apply evidence. Refresh can update backend readback, but it does not run apply or drift remediation.

Code Sync Preview contains forbidden resources

Section titled “Code Sync Preview contains forbidden resources”

Do not apply the preview. Remove or redesign forbidden source and repeat the preview against the reviewed revision.

Create a bounded action with Create a Terraform run, then Review plans safely before approval or apply.