Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>CloudForge — Terraform Visual DiagramNew to Visual Studio Code? Get it now.
CloudForge — Terraform Visual Diagram

CloudForge — Terraform Visual Diagram

cloudforge

|
12 installs
| (1) | Free
Visual infrastructure diagram for Terraform files. Import, visualize, and generate IaC for Azure, AWS, and GCP — powered by CloudForge.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CloudForge — Terraform Visual Diagram

Visualize, import, and generate Terraform infrastructure diagrams directly inside VS Code — powered by CloudForge.

Compatible with VS Code, Kiro, and any VS Code-based IDE.


What's New in v2.0.4

  • Modernized designer UI — Refreshed CloudForge shell with cleaner toolbar, rounded tabs, polished palette, premium modals, and a more focused canvas.
  • Compact resource cards — Diagram resources now use compact 90×90 cards that match the CloudForge web designer.
  • Four-side connectors — Resources can now connect from the top, right, bottom, or left side for cleaner diagram layouts.
  • Smoother connections — Connectors now use Bezier-style curves with refined arrowheads, softer selection states, and on-path edit handles.
  • Updated provider/new diagram modals — Cloud provider selection has a more modern visual treatment while keeping the same create/edit flow.

v2.0 Copilot & Deploy Features

  • @cloudforge /plan — Copilot analyses your Terraform and streams a full plan summary: resources to create, cost estimate, and any issues. If errors are found, it generates a corrected HCL and pushes it back into the modal automatically.
  • @cloudforge /apply — Opens a terminal, authenticates with your cloud provider, and runs terraform apply — no manual steps.
  • @cloudforge /destroy — Undoes the last apply by running terraform destroy in the same working directory.
  • @cloudforge /check — Copilot analyses your resources and streams a cost breakdown, policy violations, and recommendations — no backend required.
  • Check Policy & Cost button — Appears in the toolbar as soon as you have resources on the canvas.
  • Validate / Plan / Apply / Undo buttons — Available in the Generate Terraform modal footer once code is generated.
  • Status bar — Shows live violation count and cost estimate after a /check run. Click to re-check.
  • Auto-fix loop — When /plan finds errors, Copilot fixes the code and re-runs the plan automatically.
  • Quota-aware model selection — Prefers lighter Copilot models (GPT-4o mini) to avoid exhausting premium quota.

Features

  • Import Terraform folders — Open any folder of .tf files and instantly see an interactive diagram
  • Generate Terraform — Draw a diagram and export production-ready HCL across multiple files (main.tf, providers.tf, variables.tf, outputs.tf)
  • Bidirectional sync — Edit .tf files and watch the diagram update live
  • Multi-cloud — Azure, AWS, and GCP resource support out of the box
  • Modern visual canvas — Compact resource cards, four-side connectors, smooth Bezier edges, draggable connection waypoints, and polished provider modals
  • @cloudforge Copilot Chat — Manipulate your diagram, plan, apply, and get expert advice using natural language
  • Save & load diagrams — Persist diagrams to your CloudForge account and reload across sessions
  • Free tier — No credit card required

Getting Started

  1. Install the extension and click the CloudForge icon in the Activity Bar
  2. Sign in with your CloudForge account (free tier available)
  3. Open a Terraform file or use Import Folder to load an existing project
  4. Your diagram appears live alongside your code
  5. Drag resources from the palette and connect them from any side of a resource card

@cloudforge Copilot Chat

Requires GitHub Copilot Chat. Type @cloudforge in the chat panel to interact with your diagram using natural language.

Slash Commands

Command What it does
@cloudforge /check Checks for policy violations and estimates monthly cost. Updates the status bar.
@cloudforge /plan Copilot analyses the generated HCL and streams a full plan: resources, cost, warnings. Auto-fixes errors and pushes corrected code back to the modal.
@cloudforge /apply Authenticates with your cloud provider and runs terraform apply in a local terminal.
@cloudforge /destroy Undoes the last apply — authenticates and runs terraform destroy in the same directory.

Apply — Cloud Authentication

/apply and /destroy handle authentication automatically per provider:

Provider Auth flow
Azure az login → select subscription → terraform init → terraform apply
AWS aws configure → terraform init → terraform apply
GCP gcloud auth login → gcloud auth application-default login → terraform init → terraform apply

Diagram Manipulation

These commands directly modify the canvas:

Example prompt What happens
@cloudforge add a Linux VM Adds the resource to the diagram
@cloudforge add a storage account called my_storage Adds with a specific label
@cloudforge connect web_vm to my_storage Draws a connection between two nodes
@cloudforge remove web_vm Deletes the node and its edges
@cloudforge clear the diagram Wipes the entire canvas
@cloudforge build a 3-tier web app Generates a full architecture pattern
@cloudforge what's on the diagram Describes current resources and connections

Advisory — Pricing, Security & Validation

Topic Example prompt
Pricing / cost @cloudforge what will this infrastructure cost per month?
Security review @cloudforge review this for security issues
Compliance @cloudforge is this architecture CIS-benchmark compliant?
High availability @cloudforge how do I make this setup highly available?
Optimization @cloudforge how can I reduce cost on this architecture?
Architecture advice @cloudforge what's the difference between App Service and AKS here?
Networking @cloudforge explain the network topology
Best practices @cloudforge any recommendations for this setup?

Toolbar & Modal Buttons

Canvas Toolbar

  • Check Policy & Cost (amber) — Appears when resources are on the canvas. Runs @cloudforge /check.
  • Providers — Opens the provider picker for Azure, AWS, GCP, and on-premises resources.
  • Generate TF — Generates Terraform files from the current visual diagram.
  • Upload TF / Image — Imports Terraform files or architecture images into the canvas.
  • Save / Recent — Saves diagrams to CloudForge and reloads recent cloud diagrams.

Canvas Editing

  • Drag resources from the palette onto the canvas.
  • Connect resources from top, right, bottom, or left handles.
  • Click an edge to reveal its on-path edit handle; drag it to adjust the connection curve.
  • Double-click a waypoint handle to reset that connector.
  • Select a resource to edit its name, resource ID, and attributes.

Generate Terraform Modal

Button Action
Download ZIP Downloads all generated .tf files as a zip
Validate Runs @cloudforge /check — policy and cost review
Plan Runs @cloudforge /plan — Copilot plan analysis with auto-fix
Apply Runs @cloudforge /apply — authenticates and deploys
Undo Runs @cloudforge /destroy — tears down last apply

Status Bar

The CloudForge status bar item shows live policy and cost state after a /check run:

  • ☁ CloudForge — no check run yet
  • ☁ 2 violations · $43/mo — violations found (amber background)
  • ☁ $43/mo — clean, cost estimated

Click the status bar item to open Copilot Chat pre-filled with @cloudforge /check.


Commands

Command Description
CloudForge: Sign Out Sign out of your CloudForge account
CloudForge: Refresh Diagram Re-parse the current Terraform file

Extension Settings

Setting Default Description
cloudforge.apiUrl https://cloudforge.cloud API base URL — change only if self-hosting

Requirements

  • A free CloudForge account
  • GitHub Copilot Chat (for @cloudforge AI features)
  • Terraform CLI installed locally (for /apply and /destroy)
  • Azure CLI / AWS CLI / gcloud CLI (for the relevant cloud provider)

Feedback & Support

  • Website: cloudforge.cloud
  • Support: cloudforge.cloud/support
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft