AWS(アマゾン・ウェブ・サービス)のアーキテクチャ図を、説明文、既存のIaC(コード化されたインフラストラクチャ)、または会話の流れから、Mermaid(図作成言語)またはASCII(テキスト形式)で生成します。 次のような場合に使用: ユーザーがアーキテクチャを視覚的に確認したいとき。
Generate AWS architecture diagrams in Mermaid or ASCII from a description, existing IaC, or conversation context. Use when the user wants to visualize an architecture.
AWSアーキテクチャ図を生成します。システム内のリクエスト/データフローを明確かつ読みやすく表現した図を作成してください。
$ARGUMENTS に "from-iac" が含まれる場合: リポジトリをスキャンして IaC ファイル(CDK、Terraform、CloudFormation、SAM)を検索し、アーキテクチャをリバースエンジニアリングする$ARGUMENTS または会話のコンテキストに含まれる説明を使用するリクエストフローには graph LR(左→右)、階層型アーキテクチャには graph TD(上→下)を使用する。
([User])[Service Name][(Database)][/Queue/][[External API]]-->|HTTPS|、-->|async|)graph LR
User([User]) -->|HTTPS| CF[CloudFront]
CF -->|HTTPS| ALB[ALB]
subgraph VPC
subgraph Public Subnet
ALB
end
subgraph Private Subnet
ECS[ECS Fargate]
ECS -->|TCP 5432| RDS[(Aurora PostgreSQL)]
ECS -->|TCP 6379| Redis[(ElastiCache Redis)]
end
end
ECS -->|HTTPS| S3[S3 Bucket]
ECS -->|SQS| Queue[/Processing Queue/]
Queue --> Lambda[Lambda Processor]
Lambda --> S3
Mermaid をレンダリングできない環境向け:
┌──────┐ ┌────────────┐ ┌─────┐
│ User │────>│ CloudFront │────>│ ALB │
└──────┘ └────────────┘ └──┬──┘
│
┌──────────────┴──────────────┐
│ VPC │
│ ┌─────────────┐ │
│ │ ECS Fargate │──> Aurora │
│ │ │──> Redis │
│ └──────┬──────┘ │
└─────────┼────────────────────┘
│
┌────┴────┐
│ SQS │──> Lambda ──> S3
└─────────┘
from-iac が指定された場合:
*.tf、*.ts(CDK)、template.yaml(SAM)、*.template.json(CFN)を glob で検索する常に以下をすべて提供すること:
```mermaid コードブロック内)``` コードブロック内)You are generating an AWS architecture diagram. Produce clear, readable diagrams that show the request/data flow through the system.
$ARGUMENTS contains "from-iac": scan the repo for IaC files (CDK, Terraform, CloudFormation, SAM) and reverse-engineer the architecture$ARGUMENTS or conversation contextUse graph LR (left-to-right) for request flows, graph TD (top-down) for hierarchical architectures.
([User])[Service Name][(Database)][/Queue/][[External API]]-->|HTTPS|, -->|async|)graph LR
User([User]) -->|HTTPS| CF[CloudFront]
CF -->|HTTPS| ALB[ALB]
subgraph VPC
subgraph Public Subnet
ALB
end
subgraph Private Subnet
ECS[ECS Fargate]
ECS -->|TCP 5432| RDS[(Aurora PostgreSQL)]
ECS -->|TCP 6379| Redis[(ElastiCache Redis)]
end
end
ECS -->|HTTPS| S3[S3 Bucket]
ECS -->|SQS| Queue[/Processing Queue/]
Queue --> Lambda[Lambda Processor]
Lambda --> S3
For environments that don't render Mermaid:
┌──────┐ ┌────────────┐ ┌─────┐
│ User │────>│ CloudFront │────>│ ALB │
└──────┘ └────────────┘ └──┬──┘
│
┌──────────────┴──────────────┐
│ VPC │
│ ┌─────────────┐ │
│ │ ECS Fargate │──> Aurora │
│ │ │──> Redis │
│ └──────┬──────┘ │
└─────────┼────────────────────┘
│
┌────┴────┐
│ SQS │──> Lambda ──> S3
└─────────┘
When from-iac is specified:
*.tf, *.ts (CDK), template.yaml (SAM), *.template.json (CFN)Always provide:
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。