Templates

Each picture below is drawn from its template file every time the site is built, so it shows what the current code draws.

Start from one

Each template is a JSON file that comes with the package, icons included. Write one into your folder, change each label to your own words, and keep the service name under each icon. Then run open-diagram check until it reports no problems.

pip install -U open-diagram
open-diagram new                   # lists the templates
open-diagram new azure_web_app     # writes azure_web_app.json here

An AI agent connected over MCP calls the template action to get the same JSON. Every template follows the template standard, which the library's tests check.

AWS Data Ingestion with MWAAAWS Data Ingestion with MWAA Solid lines: data and metadata. Dashed lines: mwaa task control. Blocks, left to right: - ETL orchestration (Amazon MWAA) - API extractor (AWS Lambda) - SaaS extractor (AWS Lambda) - Database extractor (AWS Lambda) - Raw landing (Amazon S3) - Transform + validate (AWS Glue) - Table metadata (Glue Data Catalog) - Curated Parquet (Amazon S3) - Analytics SQL (Amazon Athena) - Business dashboards (Amazon QuickSight) Groups: - 01 Orchestrate: ETL orchestration - 02 Extract: API extractor, SaaS extractor, Database extractor - 03 Land: Raw landing - 04 Transform: Transform + validate - 05 Curate + catalog: Curated Parquet, Table metadata - 06 Query + visualize: Analytics SQL, Business dashboards - AWS account / Data platform (Logical service sections; networking and IAM omitted): ETL orchestration, API extractor, SaaS extractor, Database extractor, Raw landing, Transform + validate, Curated Parquet, Table metadata, Analytics SQL, Business dashboards Lines: - API extractor -> Raw landing - SaaS extractor -> Raw landing - Database extractor -> Raw landing - Raw landing -> Transform + validate, labeled "read" - Transform + validate -> Curated Parquet, labeled "Parquet" - Curated Parquet -> Analytics SQL, labeled "query" - Analytics SQL -> Business dashboards, labeled "results" - Curated Parquet -> Table metadata, labeled "register" - Table metadata -> Analytics SQL, labeled "schema" - ETL orchestration -> API extractor (dashed line) - ETL orchestration -> SaaS extractor (dashed line) - ETL orchestration -> Database extractor (dashed line) - ETL orchestration -> Transform + validate, labeled "after extraction" (dashed line)AWS Data Ingestion with MWAA01 Orchestrate02 Extract03 Land04 Transform05 Curate + catalog06 Query + visualizeAWS account / Data platformLogical service sections; networking and IAM omittedETL orchestrationAmazon MWAAAPI extractorAWS LambdaSaaS extractorAWS LambdaDatabase extractorAWS LambdaRaw landingAmazon S3Transform + validateAWS GlueCurated ParquetAmazon S3Table metadataGlue Data CatalogAnalytics SQLAmazon AthenaBusiness dashboardsAmazon QuickSightreadParquetqueryresultsregisterschemaafter extraction
JSON

AWS Data Ingestion with MWAA

Data ingestion on AWS in six numbered sections, from orchestration to dashboards

open-diagram new aws_etl
open-diagram draw aws_etl.json

Open in the editor · Source

Cloud resources and connectivityCloud resources and connectivity Large resource icons inside account, network and subnet enclosures. Solid lines: service connectivity. Blocks, left to right: - Public API (Amazon API Gateway) - Application function (VPC-connected Lambda) - Application database (Amazon RDS) - Object storage (Amazon S3) Groups: - Application subnet: Application function - Database subnet: Application database - VPC: Application function, Application database - AWS account: Public API, Application function, Application database, Object storage Lines: - Public API -> Application function, labeled "invoke" - Application function -> Application database, labeled "SQL" - Application function -> Object storage, labeled "objects" Note: Illustrative workload. Fictional account; no deployed resources Border styles are independently selectableTEMPLATECloud resources and connectivityLarge resource icons inside account, network and subnet enclosures.Service connectivityIllustrative workloadFictional account; no deployed resourcesBorder styles are independently selectableApplication subnetDatabase subnetVPCAWS accountPublic APIAmazon API GatewayApplication functionVPC-connected LambdaApplication databaseAmazon RDSObject storageAmazon S3invokeSQLobjects
JSON

Cloud resources and connectivity

An AWS account, network and subnets around an API, a function, a database and storage

open-diagram new aws_architecture
open-diagram draw aws_architecture.json

Open in the editor · Source

Web app on AzureWeb app on Azure A public site behind Front Door, with the app and its data inside one virtual network. Solid lines: requests and data. Blocks, left to right: - Public entry (Azure Front Door) - App secrets (Azure Key Vault) - Web app (Azure App Service) - Uploaded files (Azure Blob Storage) - Orders database (Azure SQL Database) - Session cache (Azure Cache for Redis) Groups: - App subnet: Web app - Data subnet: Orders database, Session cache - Virtual network: Web app, Orders database, Session cache - Resource group: Public entry, Web app, Orders database, Session cache, App secrets, Uploaded files Lines: - Public entry -> Web app, labeled "HTTPS" - Web app -> Orders database, labeled "SQL" - Web app -> Session cache, labeled "sessions" - Web app -> App secrets, labeled "secrets" - Web app -> Uploaded files, labeled "files" Note: Fictional workload. No deployed resources Replace the labels; keep each service name under its iconTEMPLATEWeb app on AzureA public site behind Front Door, with the app and its data inside one virtual network.Requests and dataFictional workloadNo deployed resourcesReplace the labels; keep each service name under its iconApp subnetData subnetVirtual networkResource groupPublic entryAzure Front DoorWeb appAzure App ServiceOrders databaseAzure SQL DatabaseSession cacheAzure Cache for RedisApp secretsAzure Key VaultUploaded filesAzure Blob StorageHTTPSSQLsessionssecretsfiles
JSON

Web app on Azure

A web app on Azure behind Front Door, with its database and cache inside a virtual network

open-diagram new azure_web_app
open-diagram draw azure_web_app.json

Open in the editor · Source

Event pipeline on Google CloudEvent pipeline on Google Cloud Order events go from Pub/Sub through Cloud Run into storage, a warehouse and a forecast model. Solid lines: events and data. Blocks, left to right: - Order events (Pub/Sub) - Event processor (Cloud Run) - Address check (Cloud Functions) - Raw events (Cloud Storage) - Orders warehouse (BigQuery) - Demand forecast (Vertex AI) Groups: - 01 Ingest: Order events - 02 Process: Event processor, Address check - 03 Store: Raw events, Orders warehouse - 04 Predict: Demand forecast - Google Cloud project (Networking and access rules left out): Order events, Event processor, Address check, Raw events, Orders warehouse, Demand forecast Lines: - Order events -> Event processor, labeled "push" - Event processor -> Address check, labeled "address" - Event processor -> Raw events, labeled "JSON" - Address check -> Orders warehouse, labeled "rows" - Orders warehouse -> Demand forecast, labeled "training data" Note: Fictional workload. No deployed resources Replace the labels; keep each service name under its iconTEMPLATEEvent pipeline on Google CloudOrder events go from Pub/Sub through Cloud Run into storage, a warehouse and a forecast model.Events and dataFictional workloadNo deployed resourcesReplace the labels; keep each service name under its icon01 Ingest02 Process03 Store04 PredictGoogle Cloud projectNetworking and access rules left outOrder eventsPub/SubEvent processorCloud RunAddress checkCloud FunctionsRaw eventsCloud StorageOrders warehouseBigQueryDemand forecastVertex AIpushaddressJSONrowstraining data
JSON

Event pipeline on Google Cloud

An event pipeline on Google Cloud from Pub/Sub to a warehouse and a forecast model

open-diagram new gcp_event_pipeline
open-diagram draw gcp_event_pipeline.json

Open in the editor · Source

Icons

The icons are the providers' own architecture icons, unchanged. Amazon, Microsoft and Google own the artwork, and open-diagram's MIT license does not cover it. Sources and license notes are in templates/assets/README.md.