Creating Diagrams with Amazon Q Developer
Creating Diagrams with Amazon Q Developer
aidin
Amazon Employee
Published Apr 24, 2025
As software developers and architects, we often need to create diagrams to visualize our systems, explain complex architectures, or document our designs. Creating these diagrams has traditionally been time-consuming and required specialized tools or skills.
Amazon Q Developer can generate diagrams directly in your IDE. In this post, I'll show you how to leverage Amazon Q to create various types of diagrams, from simple flowcharts to complex architecture diagrams based on your existing code.

Before diving in, make sure you have:
- Amazon Q Developer plugin installed in your IDE
- An AWS account with appropriate permissions
- Basic understanding of the system you want to diagram
If you haven't installed Amazon Q Developer yet, follow the official installation guide.
Let's start with something simple. Open the Amazon Q chat panel in your IDE and try one of these approaches:
Simply ask Amazon Q to create a diagram by describing what you need:

Amazon Q will generate a draw.io compatible file that you can save with a `.drawio` extension or you can ask Amazon Q Developer to create a file with specific name you like for you.
For simpler diagrams that you want to include in markdown documentation:
Amazon Q Developer can help you create draw.io diagrams for your architecture and system designs.
- Start with a clear request for a draw.io diagram:
- Describe the components and relationships you want to include:
- Save the generated file with a .drawio extension or ask Amazon Q Developer to create a new file for you.
- Open the file using: - draw.io website
Here are some effective prompts for creating draw.io diagrams:
- Basic AWS Architecture:
- Network Diagram:
- Microservices Architecture:
4. Security-Focused Diagram:
Amazon Q Developer can analyze your code and configuration files to generate accurate diagrams that visualize your system architecture. This is particularly valuable for understanding complex systems defined in code.
- Reference your IaC files using the `@file` or `@folder` command:
- Be specific in your requests:
- Include all components you want in the diagram
- Specify relationships between components
- Mention any color schemes or styling preferences
- Iterate on your diagrams:
- Start with a basic diagram and refine it
- Ask Amazon Q to add more details or make specific changes or services
- Use appropriate diagram types:
- Flowcharts for processes
- Sequence diagrams for interactions
- Architecture diagrams for system design
- Entity-relationship diagrams for data models
- Combine with documentation:
- Ask Amazon Q to create explanatory text to accompany diagrams
- Use diagrams as part of larger documentation efforts
Here are practical examples showing how Amazon Q Developer can help you create and improve diagrams for your projects.
These examples demonstrate how Amazon Q Developer can help you create professional diagrams for different scenarios, from infrastructure visualization to application architecture and diagram improvements.
By following this guide, you can leverage Amazon Q Developer to create diagrams that visualize your systems, architectures, and processes. These diagrams will enhance your documentation, improve team communication, and provide clear visual representations of complex technical concepts.
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.