Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
aws-arch-drawio logo

aws-arch-drawio

aws-arch-drawio-plugin

cloud-operationsClaude Codeby nirmal84

Summary

AWS architecture diagram generator for Draw.io. Scans CloudFormation, CDK, Terraform, and SAM code, infers service relationships, and renders professional Draw.io diagrams with official AWS icons (mxgraph.aws4.*), tier-based layout, and layer management.

Install to Claude Code

/plugin install aws-arch-drawio@aws-arch-drawio-plugin

Run in Claude Code. Add the marketplace first with /plugin marketplace add nirmal84/aws-arch-drawio-plugin if you haven't already.

README.md

AWS Architecture Diagram Plugin — Draw.io

Equip AI coding agents with the skill to generate professional Draw.io architecture diagrams with official AWS icons from AWS infrastructure-as-code. Works with Claude Code, Kiro, Cursor, Windsurf, and any MCP-compatible editor.

> Note: Always review generated diagrams before using them in production documentation. AI can occasionally misclassify resources or miss relationships.

---

What This Plugin Does

The AWS Arch Draw.io plugin gives your AI agent a /arch-drawio command that scans your IaC codebase and produces a professional Draw.io diagram with official AWS icons (mxgraph.aws4.*), tier-based layout, layer management, and support for PNG/SVG export.

Agent Skill Triggers

The skill activates when you ask questions like:

| Trigger Phrase | What It Does | |---|---| | "/arch-drawio" | Full scan → parse → diagram pipeline | | "Generate a Draw.io architecture diagram" | Scans IaC, opens diagram in Draw.io editor | | "Draw my AWS infrastructure with official icons" | Places mxgraph.aws4. shapes with tier layout | | "Show me the service relationships in this project" | Infers connections from IAM, env vars, event sources | | "Create an architecture diagram with VPC boundaries" | Adds region/VPC/subnet/AZ boundary containers | | "Export my architecture to PNG"* | Generates diagram and provides export instructions |

---

Pipeline

When you run /arch-drawio, the plugin follows this pipeline:

1. Scan & Detect — Walks the project looking for IaC files (CloudFormation, SAM, CDK, Terraform, Serverless Framework) and application code (AWS SDK usage) 2. Parse Resources — Extracts AWS resource definitions and builds a resource inventory with service name, tier, and mxgraph.aws4.* shape name 3. Infer Relationships — Analyses IAM policies, environment variables, event source mappings, API Gateway integrations, S3 notifications, Step Functions states, and SNS subscriptions 4. Detect Boundaries — Groups resources into Account → Region → VPC → Subnet → AZ containers; ECS services under clusters 5. Generate Diagram — Calls drawio-mcp-server tool sequence: creates layers, places boundary containers, places AWS icon nodes with explicit coordinates, draws edges 6. Report — Provides diagram location (http://localhost:3000/), resource count, layer summary, and export instructions

---

Supported IaC Frameworks

| Framework | Detection | |---|---| | AWS CloudFormation | AWSTemplateFormatVersion: "2010-09-09" in .yaml/.json | | AWS SAM | Transform: AWS::Serverless-2016-10-31 | | AWS CDK (TypeScript) | cdk.json at root or aws-cdk-lib imports in bin/.ts, lib/.ts | | Terraform | .tf files with resource "aws_" blocks | | Serverless Framework | serverless.yml / serverless.yaml | | Application Code | .ts, .py, *.java scanned for AWS SDK client instantiation |

---

Relationship Inference

The skill infers service connections from:

| Source | What It Detects | |---|---| | IAM policies | dynamodb:PutItem → Lambda writes to DynamoDB | | Environment variables | TABLE_NAME: !Ref OrdersTable → Lambda connects to table | | Event source mappings | SQS/Kinesis/DynamoDB Stream → Lambda triggers | | API Gateway integrations | API GW → Lambda/HTTP proxy routing | | S3 notifications | NotificationConfiguration → Lambda/SQS/SNS triggers | | SNS subscriptions | SNS → SQS/Lambda/HTTP subscriptions | | Step Functions | State machine definition → Lambda/ECS invocations | | AWS SDK usage | new DynamoDBClient(), boto3.client('s3') → inferred data flows |

---

Draw.io Backends

| Backend | Flag | Description | |---|---|---| | lgazo (default) | --backend lgazo | Live editor via drawio-mcp-server at localhost:3000 | | sujimoshi | --backend sujimoshi | File-based output, no running editor required | | official | --backend official | One-shot mxGraph XML via @drawio/mcp |

---

Style Modes

| Mode | Description | |---|---| | --style minimal | Only edge + compute + data tiers. No boundaries or monitoring. Clean for presentations. | | --style standard | All tiers. VPC/subnet boundaries. Inferred edges as dashed grey. 3 layers. (default) | | --style detailed | AZ boundaries, security group nodes, CloudWatch alarms, IAM roles, ARN metadata on all nodes. |

---

Plugin Components

Agent Skill

| Component | Description | |---|---| | skills/arch-drawio/SKILL.md | Core skill — pipeline stages, AWS shape map, style modes, layout guide | | skills/arch-drawio/references/aws-shape-map.md | Complete mxgraph.aws4.* shape name reference for 50+ AWS services | | skills/arch-drawio/references/drawio-style-guide.md | Boundary styles, edge styles, tier coordinates, layer management | | skills/arch-drawio/references/iac-parsing-patterns.md | Parsing reference for CloudFormation, SAM, CDK, Terraform, Serverless |

MCP Servers

The plugin configures two MCP servers via mcp.json:

---

Prerequisites

  • Node.js 18+ — for the TypeScript engine
  • Python 3.10+ with uv — for the AWS IaC MCP server (runs via uvx)
  • Draw.io desktop app (optional) — running at localhost:3000 for live editor backend

---

Installation

Claude Code — via /plugin command (Recommended)

In any Claude Code session, run these two commands:

/plugin marketplace add nirmal84/aws-arch-drawio-plugin
/plugin install aws-arch-drawio@nirmal84-aws-arch-drawio-plugin

Then in any project with IaC code, type /arch-drawio.

> Tip: Type /plugin to open the plugin manager UI — browse the Discover tab after adding the marketplace.

Claude Code — Manual (CLI)

# Clone the plugin
git clone https://github.com/nirmal84/aws-arch-drawio-plugin.git

# Copy skill to Claude's skills directory
cp -r aws-arch-drawio-plugin/skills/arch-drawio ~/.claude/skills/

# Add MCP servers
claude mcp add drawio -- npx -y drawio-mcp-server
claude mcp add aws-iac -- uvx awslabs.aws-iac-mcp-server@latest

Cursor / Windsurf / Kiro / Other MCP Editors

1. Copy skills/arch-drawio/ to your editor's skills directory 2. Merge mcp.json into your editor's MCP server configuration

---

Usage

/arch-drawio                                        # Scan repo, generate diagram
/arch-drawio --file architecture.drawio             # Output to specific file
/arch-drawio --live --region ap-southeast-2         # Include deployed AWS state
/arch-drawio --update architecture.drawio           # Update existing diagram
/arch-drawio --export png                           # Also export to PNG
/arch-drawio --layers                               # Organise into draw.io layers
/arch-drawio --style minimal                        # Fewer nodes (no monitoring/IAM)
/arch-drawio --backend sujimoshi                    # File-based output, no editor
/arch-drawio --backend official                     # One-shot XML via @drawio/mcp

---

File Structure

aws-arch-drawio-plugin/
├── skills/
│   └── arch-drawio/
│       ├── SKILL.md                              # Core agent skill
│       └── references/
│           ├── aws-shape-map.md                  # mxgraph.aws4.* shape names
│           ├── drawio-style-guide.md             # Styles, layout, layer guide
│           └── iac-parsing-patterns.md           # IaC parsing reference
├── commands/
│   └── arch-drawio.md                            # /arch-drawio command
├── src/                                          # TypeScript engine
│   ├── scanner/                                  # IaC file detection
│   ├── parsers/                                  # CloudFormation, CDK, Terraform, SAM
│   ├── graph/                                    # Resource graph, inference, boundaries
│   ├── translator/                               # drawio-mcp-server payload builder
│   │   ├── aws-shape-map.ts
│   │   ├── drawio-styles.ts
│   │   ├── layout-engine.ts
│   │   ├── lgazo-translator.ts
│   │   ├── xml-generator.ts
│   │   └── sujimoshi-translator.ts
│   └── index.ts
├── mcp.json                                      # MCP server configuration
├── .claude-plugin/plugin.json                    # Plugin manifest
├── package.json
└── README.md

---

Related Resources

---

Author

Nirmal Rajan@nirmal84

Related plugins

Browse all →