← Back to list

AI-Assisted AWS Architecture Diagram Generation

Explored how AI can simplify and accelerate AWS architecture documentation by converting technical architecture requirements into editable…

Er.Monali Hingu · 2026-08-10 05:51 · 0 claps · 3.3 min read
#artificial-intelligence #aws-architecture #architecture-diagram #cursor #ai
Open on Medium ↗
Wiki topics: AI · AI · General ☁️ · DevOps & Cloud 🏛️ · Architecture

AI-Assisted AWS Architecture Diagram Generation

Explored how AI can simplify and accelerate AWS architecture documentation by converting technical architecture requirements into editable Draw.io diagrams. The POC demonstrates using Cursor AI to analyze AWS services and dependencies, generate a .drawio file, and refine the architecture diagram through AI-assisted validation. This approach helps reduce manual diagramming effort while making architecture documentation faster, reusable, and easier to maintain.

Please follow the steps outlined below.

  1. Create New Folder in cursor
  2. Create a file ‘architecture-requirements.md’ inside that.
  3. Paste below content in the file.

Demo AWS Architecture

Frontend

  • React application
  • Hosted on Amazon S3
  • Distributed through CloudFront

DNS and Security

  • Route 53 for DNS
  • AWS WAF attached to CloudFront
  • HTTPS enabled

Authentication

  • Amazon Cognito User Pool
  • Email OTP authentication

Backend

  • API Gateway
  • ECS Fargate
  • Application Load Balancer
  • NestJS backend

Database

  • Amazon Aurora PostgreSQL
  • Prisma ORM

Supporting Services

  • Amazon SES
  • AWS Secrets Manager
  • Amazon CloudWatch
  • Sentry
  • PostHog

Expected Flow

User

→ Route 53

→ CloudFront + WAF

→ S3 for frontend

Frontend

→ API Gateway

→ ALB

→ ECS Fargate

→ Aurora PostgreSQL

Authentication

→ Cognito

Backend

→ SES

→ Secrets Manager

→ CloudWatch

  1. Provide below prompt to cursor(model used for poc Cursor Grok 4.5)

I want to create an AI-assisted AWS architecture diagram POC.

Use the architecture described in architecture-requirements.md.

Your task is to generate a complete, editable Draw.io architecture diagram for this AWS architecture.

Requirements:

  1. Represent AWS services using appropriate AWS architecture icons where possible.
  1. Organize the diagram into logical sections:
  • Users
  • DNS / Security
  • Frontend
  • Authentication
  • API / Backend
  • Database
  • Supporting / Monitoring services
  1. Show clear directional relationships and data flows between components.
  1. Group related components inside logical containers/VPC boundaries where appropriate.
  1. Clearly distinguish frontend, backend, database, authentication, and external services.
  1. Use meaningful labels for connections.
  1. Keep the diagram clean, professional, and suitable for technical documentation.
  1. Avoid unnecessary crossing lines.
  1. Use a left-to-right architecture flow where practical.
  1. Generate a valid Draw.io XML file that can be opened directly in diagrams.net / Draw.io.

Most importantly, create an actual .drawio file rather than only describing the diagram.

Before generating the file:

  • Analyze the architecture.
  • Identify all AWS services and dependencies.
  • Determine the appropriate layout.
  • Then generate the Draw.io XML.

After generating the file, verify that:

  • The XML is valid.
  • The file can be opened by Draw.io.
  • All major AWS services from the requirements are represented.
  • Connections between services are correctly represented.

Create the final file as:

‘demo-architecture.drawio`

  1. Open the newly created demo-architecture.drawio file in the official diagrams.net website.

  2. The generated architecture diagram will look like the image attached below.

Version 1

Version 1

The best part is that you can edit the generated diagram directly in the official diagrams.net site, allowing you to add text, modify existing components, or add new components as needed.

  1. Prompt to refine and improve the generated architecture diagram

Review the generated 'demo-rchitecture.drawio` diagram.

Improve the diagram with the following requirements:

  • Use official AWS architecture icons where supported.
  • Add clear AWS service labels.
  • Group services into logical architecture layers.
  • Represent the AWS VPC boundary where applicable.
  • Separate public and private components.
  • Improve spacing and alignment.
  • Minimize crossing connections.
  • Add labels to important data flows.
  • Clearly represent authentication flow through Cognito.
  • Clearly represent frontend-to-backend communication.
  • Clearly represent backend-to-database communication.
  • Add monitoring and security services in a separate section.
  • Keep the final diagram suitable for an engineering architecture review.

Modify the existing .drawio file rather than creating a completely separate format.

  1. The improved architecture diagram will now look like the image attached below.

Version 2

Version 2

  1. Validate the Generated Diagram

Review the AWS architecture represented in demo-architecture.drawio against architecture-requirements.md.

Identify:

  1. Missing AWS services
  1. Incorrect relationships
  1. Missing data flows
  1. Incorrect AWS architecture assumptions
  1. Components that should be inside/outside the VPC
  1. Security or networking components that should be represented
  1. Any misleading or ambiguous connections

Provide a validation report and then update the Draw.io file to correct the identified issues.

  1. Final Version of the Architecture Diagram

Version 3

Version 3

#AWS #AWSArchitecture #ArtificialIntelligence #AI #GenerativeAI #CursorAI #CloudArchitecture #ArchitectureDiagram #Drawio #DiagramsNet #DevTools #DeveloperProductivity #AIAutomation #EngineeringProductivity #TechInnovation


메타데이터
post_id
fea0a8f4cfd9
slug
ai-assisted-aws-architecture-diagram-generation-fea0a8f4cfd9
url
https://medium.com/@monali16296/ai-assisted-aws-architecture-diagram-generation-fea0a8f4cfd9
canonical_url
https://medium.com/@monali16296/ai-assisted-aws-architecture-diagram-generation-fea0a8f4cfd9
author_url
https://medium.com/@monali16296
status
ok
fetched_at
2026-08-12 17:33:59