aws-diagrams
Skill9 starsChanged 8 months agoMITView on GitHub
Generate AWS architecture diagrams from CloudFormation, CDK, Terraform or natural language. Use when visualizing infrastructure with C4, Mermaid or Eraser DSL notation.
In this repository21 other files it gives its agents.
- aws-apiSkill
- aws-architectureSkill
- aws-cdkSkill
- aws-cloudfrontSkill
- aws-cost-operationsSkill
- aws-dynamodbSkill
- aws-ec2Skill
- aws-lambda-pythonSkill
- aws-lambda-typescriptSkill
- aws-observabilitySkill
- aws-rdsSkill
- aws-s3Skill
- aws-securitySkill
- aws-serverlessSkill
- aws-terraformSkill
- aws-testingSkill
- find-skillsSkill
- javascript-runtimeSkill
- orbit-bootstrapSkill
- python-runtimeSkill
- typescript-runtimeSkill
The file
Files
AWS Diagrams
Skill para generar diagramas de arquitectura AWS desde CloudFormation, CDK, Terraform o descripciones en lenguaje natural. Usa notación C4, Eraser DSL o Mermaid para visualizar infraestructura.
Principios fundamentales
- Todo sistema debe tener un diagrama de arquitectura actualizado.
- Preferir diagramas como código (Mermaid, Eraser DSL, PlantUML) sobre herramientas gráficas.
- Mostrar flujo de datos, no solo componentes. Las flechas indican dirección del tráfico.
- Agrupar por VPC, subnets y availability zones cuando aplique.
- Incluir servicios de seguridad (WAF, Security Groups) y observabilidad (X-Ray, CloudWatch).
Patrones de diagrama Mermaid
API Serverless típica
graph LR
Client[Cliente] --> APIGW[API Gateway]
APIGW --> Lambda[Lambda]
Lambda --> DDB[(DynamoDB)]
Lambda --> S3[(S3)]
Lambda --> SQS[SQS]
SQS --> Worker[Lambda Worker]
Worker --> DDBEvent-driven con EventBridge
graph TD
ServiceA[Servicio A] --> EB[EventBridge]
EB --> Rule1[Rule: Orders]
EB --> Rule2[Rule: Notifications]
EB --> Rule3[Rule: Analytics]
Rule1 --> Lambda1[Order Processor]
Rule2 --> SNS[SNS]
Rule3 --> Firehose[Kinesis Firehose]
Lambda1 --> DDB[(DynamoDB)]
SNS --> Email[Email]
Firehose --> S3[(S3 Data Lake)]Full-stack con CloudFront
graph LR
User[Usuario] --> CF[CloudFront]
CF --> S3[S3 Static Assets]
CF --> APIGW[API Gateway]
APIGW --> Lambda[Lambda]
Lambda --> DDB[(DynamoDB)]
Lambda --> Cognito[Cognito]
CF --> WAF[WAF]Multi-AZ con RDS
graph TD
subgraph VPC
subgraph Public Subnet
ALB[Application Load Balancer]
NAT[NAT Gateway]
end
subgraph Private Subnet AZ-1
EC2a[EC2 Instance]
RDSp[(RDS Primary)]
end
subgraph Private Subnet AZ-2
EC2b[EC2 Instance]
RDSs[(RDS Standby)]
end
end
Internet --> ALB
ALB --> EC2a
ALB --> EC2b
EC2a --> RDSp
EC2b --> RDSp
RDSp -.->|Replication| RDSsEraser DSL para diagramas AWS
main-vpc [label: "VPC 10.0.0.0/16"] {
public-subnet [label: "Public Subnet"] {
alb [icon: aws-elb, label: "ALB"]
nat [icon: aws-vpc, label: "NAT Gateway"]
}
private-subnet [label: "Private Subnet"] {
lambda [icon: aws-lambda, label: "API Handler"]
ecs [icon: aws-ecs, label: "Worker Service"]
}
data-subnet [label: "Data Subnet"] {
rds [icon: aws-rds, label: "PostgreSQL"]
cache [icon: aws-elasticache, label: "Redis"]
}
}
cloudfront [icon: aws-cloudfront, label: "CDN"]
s3 [icon: aws-s3, label: "Static Assets"]
cognito [icon: aws-cognito, label: "Auth"]
eventbridge [icon: aws-eventbridge, label: "Event Bus"]
cloudfront -> alb
cloudfront -> s3
alb -> lambda
lambda -> rds
lambda -> cache
lambda -> eventbridge
eventbridge -> ecsConvenciones de diagramas
Colores por tipo de servicio
| Tipo | Color sugerido | Servicios |
| Compute | Naranja | Lambda, EC2, ECS, Fargate |
| Storage | Verde | S3, EBS, EFS |
| Database | Azul | DynamoDB, RDS, ElastiCache |
| Networking | Púrpura | VPC, CloudFront, API Gateway, Route 53 |
| Security | Rojo | IAM, WAF, Cognito, KMS |
| Integration | Rosa | SQS, SNS, EventBridge, Step Functions |
Niveles de detalle (C4 Model)
- Context: Sistema completo y actores externos.
- Container: Servicios AWS principales y sus relaciones.
- Component: Lambdas individuales, tablas, colas dentro de cada servicio.
- Code: Solo cuando se necesita documentar lógica interna.
Cuándo crear/actualizar diagramas
- Al diseñar una nueva feature o sistema.
- Al hacer cambios significativos en la arquitectura.
- En design reviews y RFCs.
- Al onboardear nuevos miembros del equipo.
- En documentación de runbooks y disaster recovery.
Anti-patrones a evitar
- ❌ Diagramas desactualizados que no reflejan la arquitectura real.
- ❌ Diagramas sin flechas de dirección (no se entiende el flujo).
- ❌ Demasiado detalle en un solo diagrama (usar niveles C4).
- ❌ Diagramas solo en herramientas gráficas (no versionables en git).
- ❌ No incluir servicios de seguridad y observabilidad.
- ❌ Diagramas sin leyenda o convención de colores.
Checklist de diagramas
- Diagrama de contexto (sistema + actores externos).
- Diagrama de containers (servicios AWS principales).
- Flechas con dirección y etiquetas de protocolo/acción.
- VPCs, subnets y AZs representados cuando aplica.
- Servicios de seguridad incluidos (WAF, IAM, Cognito).
- Diagrama como código (Mermaid, Eraser DSL, PlantUML).
- Versionado en git junto al código.
- Actualizado con cada cambio significativo de arquitectura.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

