Skip to content

Web app on AWS

The orrery init default, a load-balanced container service with its database and cache in a VPC and a bucket in the Region, inside one AWS Cloud group.

aws6 nodes3 groups5 edges
Edit in the playgroundOpen full size
Web app on AWS: users, an Application Load Balancer and an ECS service with a database and a cache in a VPC, and an S3 bucket in the RegionWeb app on AWS: users, an Application Load Balancer and an ECS service with a database and a cache in a VPC, and an S3 bucket in the RegionWeb app on AWS: users, an Application Load Balancer and an ECS service with a database and a cache in a VPC, and an S3 bucket in the RegionWeb app on AWS: users, an Application Load Balancer and an ECS service with a database and a cache in a VPC, and an S3 bucket in the Region
starter.yamlOn GitHub
# yaml-language-server: $schema=../references/diagram.schema.json
# Starter template: rename the nodes, keep the shape. Render with `orrery render diagram.yaml`.
title: Web app on AWS
subtitle: A container service behind a load balancer, with a database, a cache and file storage
direction: right

groups:
  aws: { type: aws:cloud }
  region: { type: aws:region, in: aws }
  vpc: { type: aws:vpc, in: region }

nodes:
  users: { icon: aws:users, label: Users }
  alb: { icon: aws:alb, label: Application Load Balancer, in: vpc }
  app: { icon: aws:fargate, label: Web service, note: Amazon ECS on AWS Fargate, badge: x3, in: vpc }
  db: { icon: aws:aurora, label: Amazon Aurora, note: "Orders database, PostgreSQL", in: vpc }
  cache: { icon: aws:elasticache, label: Amazon ElastiCache, note: "Session cache, Valkey", in: vpc }
  files: { icon: aws:s3, label: Amazon Simple Storage Service, note: Uploads bucket, in: region }

edges:
  - users -> alb: HTTPS
  - alb -> app
  # Label all sibling edges or none: a labeled edge takes one extra column.
  - app -> db, cache, files

Start from this one

Copies the spec to diagram.yaml, then renders every format.

$ orrery init starter$ orrery render diagram.yaml -f all --theme both