Build an AWS architecture diagram from scratch

1 · Prompt

Suggested prompt

Use Beautiflow to explain an illustrative AWS web application to a technical audience. Start with the account boundary and EKS, then follow the six authored stages in examples/recipes/aws-architecture/README.md: network and availability, frontend/backend workloads, Aurora, ingress/VPN/egress, and operations. Propose each stage before adding it; preserve earlier relationships unless the next step explicitly replaces them. Distinguish conceptual paths from deployed controls. Do not claim production readiness or automatic architecture polish.Read full promptClose full prompt
Use Beautiflow to explain an illustrative AWS web application to a technical audience. Start with the account boundary and EKS, then follow the six authored stages in examples/recipes/aws-architecture/README.md: network and availability, frontend/backend workloads, Aurora, ingress/VPN/egress, and operations. Propose each stage before adding it; preserve earlier relationships unless the next step explicitly replaces them. Distinguish conceptual paths from deployed controls. Do not claim production readiness or automatic architecture polish.

Work in a new destination that I approve; do not overwrite the reference files.

Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.

This walkthrough shows one conversation growing from a four-line brief into a production-oriented AWS architecture. Every step includes the exact user prompt, the Mermaid snapshot produced by the agent, the Beautiflow command used to render it, and the resulting SVG.

The diagram is an explanatory architecture artifact, not deployable infrastructure or a substitute for an AWS Well-Architected and security review.

Before you start

Open the first snapshot in the live viewer:

beautiflow server examples/recipes/aws-architecture/sources/step-1-system-boundary.mmd

In another terminal, start Pi, Claude Code, or Codex with the Beautiflow skill installed. In a real conversation the agent would keep editing one working .mmd file. This recipe retains a separate snapshot after each turn so you can compare the progression.

AWS architecture rendering

This recipe uses Mermaid architecture-beta, not a generic flowchart. Pele supplies deterministic parsing, labels, boundaries, and layout for every snapshot; Beautiflow resolves registered logos, lucide, and aws icons. The result works as SVG, PNG, and live server output without a DOM runtime. Architecture audit reports pele-positioned-geometry using a pinned additive renderer extension, plus element and SVG-reference integrity. It does not measure edge-label boxes or browser glyph ink, so also inspect the final artifact visually. AWS-specific decisions live only in these example sources.

AWS service glyphs come from the CC0 SVG Logos collection where available. Lucide supplies neutral actors and fallbacks for services absent from that collection. They create an AWS-documentation-style diagram but are not a redistributed copy of the official AWS Architecture Icon Package. AWS names and marks remain the property of Amazon Web Services.

Presentation layout

Every snapshot is authored with explicit L/R/T/B ports. Normal snapshots retain Mermaid’s documented straight and single-elbow connectors. For the large multilevel final snapshot, the stability fallback sizes groups from measured icons and labels. Open the complete reference at full size rather than shrinking all services onto a small slide. SVG is recommended for PowerPoint because it stays sharp when resized.

Standard-symbol variant

The generic source keeps the complete Step 6 topology but replaces every Iconify and AWS service mark with Mermaid’s built-in internet, server, database, and disk architecture symbols.

beautiflow render examples/recipes/aws-architecture/variants/step-6-production-architecture-standard.mmd --format svg --theme github-light --output examples/recipes/aws-architecture/variants/step-6-production-architecture-standard.svg

Live preview:

beautiflow server examples/recipes/aws-architecture/variants/step-6-production-architecture-standard.mmd

View the standard-symbol SVG.

For a version that does not use architecture-beta at all, use the conventional Mermaid flowchart LR source:

beautiflow render examples/recipes/aws-architecture/variants/step-6-production-architecture-flowchart-reviewed.mmd --format svg --theme github-light --output examples/recipes/aws-architecture/variants/step-6-production-architecture-flowchart-reviewed.svg
beautiflow server examples/recipes/aws-architecture/variants/step-6-production-architecture-flowchart-reviewed.mmd

View the conventional flowchart SVG.


Step 1 — Establish the system boundary

Input prompt

1 · Prompt

Walkthrough prompt — wording from the guide

Create a new architecture diagram from scratch.Read full promptClose full prompt
Create a new architecture diagram from scratch.

The system will run in one AWS account. It needs a VPC, an Amazon EKS cluster, an Amazon Aurora PostgreSQL database, public internet access, and an AWS Site-to-Site VPN for remote engineers.

Start with a conceptual system boundary. Do not add implementation detail yet. Use stable, descriptive Mermaid IDs so we can extend it later with Beautiflow.

What the agent adds

View the Mermaid source.

Output

2 · Diagram

Conceptual AWS system boundary

beautiflow render examples/recipes/aws-architecture/sources/step-1-system-boundary.mmd --format svg --theme github-light --output examples/recipes/aws-architecture/rendered/step-1-system-boundary.svg

At this stage the direct internet-to-EKS line is intentionally conceptual. Later prompts replace it with the real edge path.


Step 2 — Add a resilient network foundation

Input prompt

1 · Prompt

Walkthrough prompt — wording from the guide

Expand the architecture into a two-Availability-Zone VPC.Read full promptClose full prompt
Expand the architecture into a two-Availability-Zone VPC.

Add public, private application, and isolated data subnets in both zones. Show the Internet Gateway, Customer Gateway, Site-to-Site VPN, and Virtual Private Gateway. Public traffic should enter through public subnets; VPN traffic should reach only private application subnets.

Keep this step focused on network placement. Do not add Kubernetes workloads yet.

What changes

View the Mermaid source.

Output

2 · Diagram

Two-zone AWS network foundation

beautiflow render examples/recipes/aws-architecture/sources/step-2-network-foundation.mmd --format svg --theme github-light --output examples/recipes/aws-architecture/rendered/step-2-network-foundation.svg

Step 3 — Place frontend and backend workloads in EKS

Input prompt

1 · Prompt

Walkthrough prompt — wording from the guide

Add Amazon EKS in the private application subnets across both Availability Zones.Read full promptClose full prompt
Add Amazon EKS in the private application subnets across both Availability Zones.

EKS must contain a frontend deployment and a backend deployment spanning AZ A and AZ B. Represent each deployment as one architecture service so the slide stays readable, while keeping both zones explicit in its label. Put the AWS Load Balancer Controller in the cluster. The public load balancer should reach only the frontend path. Frontend pods call the backend, and VPN users may reach the backend privately.

What changes

View the Mermaid source.

Output

2 · Diagram

EKS frontend and backend workloads

beautiflow render examples/recipes/aws-architecture/sources/step-3-eks-workloads.mmd --format svg --theme github-light --output examples/recipes/aws-architecture/rendered/step-3-eks-workloads.svg

Step 4 — Add the Aurora data tier

Input prompt

1 · Prompt

Walkthrough prompt — wording from the guide

Add the production database path.Read full promptClose full prompt
Add the production database path.

Use Amazon Aurora PostgreSQL in isolated data subnets. Show an Aurora writer in AZ A and a reader in AZ B with replication. Put Amazon RDS Proxy between backend pods and Aurora. Backend pods are the only application workloads connected to RDS Proxy. Add AWS Secrets Manager for database credentials and show that credentials are delivered to the backend, not stored in the diagrammed application path.

What changes

View the Mermaid source.

Output

2 · Diagram

EKS connected to Aurora through RDS Proxy

beautiflow render examples/recipes/aws-architecture/sources/step-4-data-layer.mmd --format svg --theme github-light --output examples/recipes/aws-architecture/rendered/step-4-data-layer.svg

Step 5 — Complete ingress, VPN, and controlled egress

Input prompt

1 · Prompt

Walkthrough prompt — wording from the guide

Replace the conceptual public connection with a realistic edge path.Read full promptClose full prompt
Replace the conceptual public connection with a realistic edge path.

Public users should resolve Amazon Route 53, pass through Amazon CloudFront and AWS WAF, then reach an Application Load Balancer in the public subnets. The ALB sends application traffic to the frontend service. Show the controller configuring the ALB as a separate management relationship. Keep Site-to-Site VPN access separate through a Virtual Private Gateway. Add one NAT Gateway per Availability Zone for controlled backend egress. Preserve the frontend-to-backend and backend-to-Aurora paths.

What changes

View the Mermaid source.

Output

2 · Diagram

AWS edge, VPN, EKS, and Aurora paths

beautiflow render examples/recipes/aws-architecture/sources/step-5-edge-and-access.mmd --format svg --theme github-light --output examples/recipes/aws-architecture/rendered/step-5-edge-and-access.svg

Step 6 — Finish the production architecture

Input prompt

1 · Prompt

Walkthrough prompt — wording from the guide

Turn this into a complete production architecture diagram while keeping it readable.Read full promptClose full prompt
Turn this into a complete production architecture diagram while keeping it readable.

Preserve the two-AZ network, public edge, VPN, EKS frontend/backend workloads, RDS Proxy, and Aurora writer/reader. Add:

- a source repository and CI/CD pipeline
- Amazon ECR with signed container images delivered to EKS
- AWS IAM with IRSA for workload identity
- AWS Secrets Manager for backend database credentials
- Amazon CloudWatch logs, metrics, alarms, and an operations on-call destination
- automated Aurora snapshots archived to Amazon S3
- an Internet Gateway and one NAT Gateway per Availability Zone

Use explicit architecture ports for every connection. Keep AWS account, VPC, subnet, EKS, and database boundaries visible. Arrange delivery, public ingress, runtime, VPN, and operations as horizontal rows suitable for a widescreen presentation. Show supporting identity, secret, image, telemetry, and backup relationships without connecting frontend pods directly to Aurora.

What changes

View the complete Mermaid source.

Final output

2 · Diagram

Complete production AWS architecture

beautiflow render examples/recipes/aws-architecture/sources/step-6-production-architecture.mmd --format svg --theme github-light --output examples/recipes/aws-architecture/rendered/step-6-production-architecture.svg

Open the complete result as a live, zoomable SVG:

beautiflow server examples/recipes/aws-architecture/sources/step-6-production-architecture.mmd

Final architecture inventory

Concern Final design
Account boundary One AWS account
Network One VPC across two Availability Zones
Public ingress Route 53 → CloudFront → WAF → ALB
Private access Corporate network → Customer Gateway → Site-to-Site VPN → Virtual Private Gateway
Compute Private Amazon EKS cluster with frontend and backend deployments across both zones
Workload routing ALB → frontend workloads → backend workloads; the controller configures the ALB
Database Backend pods → RDS Proxy → Aurora PostgreSQL writer and reader in isolated subnets
Egress One NAT Gateway per Availability Zone
Delivery Source repository → CI/CD → Amazon ECR → EKS
Identity and secrets IAM/IRSA and Secrets Manager scoped to backend workloads
Observability EKS → CloudWatch → alarms → operations on-call
Recovery Aurora automated snapshots → Amazon S3 archive

Reading the reviewed examples

The reviewed snapshots connect the ALB to frontend workloads, with a separate controller-to-ALB configuration relationship. NAT-A and NAT-B are independent egress dependencies, not a serial chain. The complete reference is still illustrative: DNS, filtering, backup, identity, and management relationships must not all be interpreted as packet forwarding.

The conventional flowchart's reviewed version shows the controller relationship with a labelled dotted edge. The original unreviewed flowchart file remains only as a historical artifact and is not the recommended example.

For presentation-sized explanations, start with the separate request, network, and operations examples. They use provider-neutral responsibilities, are not automatic projections of this AWS source, and do not replace the complete reference.

Solid arrows in the architecture reference mean directed relationships, not necessarily request traffic. A layout algorithm cannot validate provider semantics; review those separately using AWS load-balancing guidance and zonal NAT guidance.

Continue the conversation

Useful next prompts include:

1 · Prompt

Walkthrough prompt — wording from the guide

Add an internal-only operations service reachable through the VPN. Keep it out of the public ALB path. Read full promptClose full prompt
Add an internal-only operations service reachable through the VPN. Keep it out of the public ALB path.

1 · Prompt

Walkthrough prompt — wording from the guide

Add ElastiCache between backend pods and Aurora, but make cache misses and database writes semantically clear. Read full promptClose full prompt
Add ElastiCache between backend pods and Aurora, but make cache misses and database writes semantically clear.

1 · Prompt

Walkthrough prompt — wording from the guide

Split the backend into orders and billing services. Only billing may access payment credentials, and both services must keep private database paths. Read full promptClose full prompt
Split the backend into orders and billing services. Only billing may access payment credentials, and both services must keep private database paths.

1 · Prompt

Walkthrough prompt — wording from the guide

Use Beautiflow diagnose and audit on the final diagram. Fix only mechanical findings; do not remove production detail to improve the score. Read full promptClose full prompt
Use Beautiflow diagnose and audit on the final diagram. Fix only mechanical findings; do not remove production detail to improve the score.