Skip to main content

Canvas Design

A canvas is the blueprint of one project. Canvas design is deciding which bundles share a project. The environments of each project follow from that decision. A network and a billing API do not belong on the same canvas, because a network is needed once per region and a billing API is needed once per stage.

One copy per what​

Every environment in a project gets an instance of every component on its canvas. So for each bundle, ask what one copy of it is for: the organization, a region, a stage, a customer. Bundles with the same answer can share a canvas. Bundles with different answers go in different projects.

Components in different places connect in three ways:

  • Connection on the canvas. Joins two components of the same project, inside each environment. Use it when both sides need the same number of copies and have the same owner, such as a service and its database.
  • Environment default. A resource set on an environment for its type. It fills every slot of that type in the environment that nothing else fills. Use it for what an environment has exactly one of: the network, the cluster, the credentials. The bundle that produces it is in another project and is not on the consuming canvas.
  • Remote reference. Set on one slot of one instance. It points at a specific resource in another environment, of the same project or a different one, and takes priority over the canvas connection for that slot. Use it when the consumer has to pick one resource, such as which shared database to read.

Other reasons to split a canvas:

  • A different owner. Access and release timing follow the project.
  • Data that has to survive. A canvas that gets forked for previews should not carry state that cannot be forked.
  • A larger blast radius than the things around it.

An example organization​

edge project Stagesbilling project Stages + Regionscompute platform project Platform Layernetwork project Regionsorganization project Singletonstagingproddevstagingproduseastprodeuwestnonuseastproduseastprodeuwestnonuseastproduseastprodeuwestglobal

The billing project has four environments, the network under it has three, and the edge in front of it has two. Dev and staging share one non-production cluster and network. How projects combine walks through each project.

Where common bundles go​

BundleOne copy perCanvasHow others use it
Root DNS zoneOrganizationOrganizationRemote reference from the zones delegated under it
Identity provider and SSO rolesOrganizationOrganizationRemote reference from account and cluster bundles
Container registryOrganizationOrganizationEnvironment default in application environments
CI runnersOrganizationOrganizationNothing depends on it
Audit log archiveOrganizationOrganizationRemote reference from each network or account
VPC or VNet with subnetsRegion and account tierNetworkEnvironment default
Private DNS zoneRegion and account tierNetworkEnvironment default
Transit gateway or hub networkOrganization or regionNetworkIts own hub project. Remote reference from each spoke network.
VPN or dedicated interconnectRegionNetworkConnected to the hub on the hub canvas
Kubernetes clusterNetworkCompute PlatformEnvironment default
Container service cluster or app hosting planNetworkCompute PlatformEnvironment default
Ingress controller, cert-manager, external-dnsClusterCompute PlatformConnected to the cluster on its canvas
Event busAccount tier, or region and tierShared ServicesEnvironment default
Metrics, logs, and tracing backendAccount tierShared ServicesEnvironment default
Key management and secrets storeRegion and account tierShared ServicesEnvironment default
Database used by several servicesStageShared ServicesRemote reference from each service
CDN and WAFStageEdgeHolds remote references to application environments
Global load balancer or failover routingStageEdgeHolds remote references to application environments
Public DNS recordsStageEdgeConnected on the edge canvas
API or web serviceStage, and region in productionApplicationConnected on the canvas
Workers and scheduled jobsStage, and region in productionApplicationConnected on the canvas
Database owned by one serviceStage, and region in productionApplicationConnected on the canvas
Cache, queue, or bucket owned by one serviceStage, and region in productionApplicationConnected on the canvas
Service alarms and dashboardsStage, and region in productionApplicationConnected on the canvas
Tenant control planeStageApplicationRemote reference from every tenant environment
Warehouse and lake storageStageData PlatformConnected on the canvas
Pipelines and orchestrationStageData PlatformHolds remote references to application databases
Customer runtime and databaseCustomer or cellTenant StackHolds a remote reference to the control plane

Canvases​

Each of these is a kind of project. A small organization can merge neighbors, such as network and compute platform. A large one has many application projects and usually one of each of the others.

Organization​

organization projectglobal

Things that exist once for the whole company.

  • Bundles: Root DNS zone, identity provider and SSO roles, container registry, CI runners, audit log archive.
  • Environments: One.
  • Connects: Other projects use its resources by remote reference. Anything every environment needs, such as the registry, is set as an environment default in each of them.
Example blueprint.yaml alpha
version: 1
project: org
components:
dns: { bundle: root-dns-zone, name: Root DNS Zone }
sso: { bundle: sso-identity, name: SSO and Roles }
registry: { bundle: container-registry, name: Container Registry }
runners: { bundle: ci-runners, name: CI Runners }
audit: { bundle: audit-log-archive, name: Audit Log Archive }
links:
- sso.identity -> registry.identity
- sso.identity -> runners.identity
- registry.registry -> runners.registry

Network​

network projectnonuseastproduseastprodeuwest

The address space everything else is deployed into.

  • Bundles: VPC or VNet with subnets, private DNS zone, VPN or dedicated interconnect.
  • Environments: One per region, split by account tier: nonuseast, produseast, prodeuwest. Stages do not each need a network, and dev and staging usually share the non-production one. A transit hub is its own project, because there are fewer hubs than networks.
  • Connects: Each network is set as the environment default in the environments deployed into it, so it never appears on an application canvas.
Example blueprint.yaml alpha
version: 1
project: network
components:
vpc: { bundle: aws-vpc, name: VPC }
privatedns: { bundle: private-dns-zone, name: Private DNS Zone }
vpn: { bundle: site-to-site-vpn, name: VPN }
links:
- vpc.network -> privatedns.network
- vpc.network -> vpn.network

Compute Platform​

compute platform projectnonuseastproduseastprodeuwest

Clusters, and what has to be installed in them before a workload can run.

  • Bundles: Kubernetes cluster, container service cluster or app hosting plan, ingress controller, cert-manager, external-dns.
  • Environments: The same as the network when each network has one cluster, and then the two can share a canvas if one team owns both. More environments when a network holds several clusters.
  • Connects: The cluster is an environment default for application environments. Add-ons such as the ingress controller are connected to the cluster on this canvas.
Example blueprint.yaml alpha
version: 1
project: compute
# No network component: each environment sets its network as an environment default.
components:
cluster: { bundle: aws-eks-cluster, name: Kubernetes Cluster }
ingress: { bundle: ingress-nginx, name: Ingress Controller }
certs: { bundle: cert-manager, name: Cert Manager }
dns: { bundle: external-dns, name: External DNS }
links:
- cluster.kubernetes -> ingress.kubernetes
- cluster.kubernetes -> certs.kubernetes
- cluster.kubernetes -> dns.kubernetes

Shared Services​

shared services projectnonprodprod

Services that many applications use and no single application owns.

  • Bundles: Event bus, metrics, logs, and tracing backend, key management and secrets store, database used by several services.
  • Environments: One per account tier, or one per region and tier when traffic has to stay in its region.
  • Connects: Environment default when an environment has exactly one of the resource type, such as the metrics endpoint. Remote reference when the consumer has to pick one, such as a specific database.
Example blueprint.yaml alpha
version: 1
project: shared
components:
eventbus: { bundle: aws-eventbridge-bus, name: Event Bus }
telemetry: { bundle: observability-stack, name: "Metrics, Logs, and Traces" }
kms: { bundle: aws-kms-key, name: Encryption Key }
secrets: { bundle: secrets-store, name: Secrets Store }
sharedb: { bundle: aws-aurora-postgres, name: Shared Database }
links:
- kms.key -> secrets.encryption
- kms.key -> sharedb.encryption
- kms.key -> eventbus.encryption

Edge​

edge projectstagingprod

Where traffic enters and is steered.

  • Bundles: CDN and WAF, global load balancer or failover routing, public DNS records.
  • Environments: One per stage. There is one production edge no matter how many regions sit behind it.
  • Connects: It consumes and is not consumed. Its instances have remote references to the application environments behind it, which makes it the traffic switch for blue/green and failover.
Example blueprint.yaml alpha
version: 1
project: edge
# The application endpoints behind the load balancer are remote references,
# set on each edge environment.
components:
waf: { bundle: aws-waf, name: Web Application Firewall }
lb: { bundle: global-load-balancer, name: Global Load Balancer }
cdn: { bundle: cloudfront-cdn, name: CDN }
records: { bundle: public-dns-records, name: Public DNS Records }
links:
- waf.firewall -> cdn.firewall
- lb.loadbalancer -> cdn.origin
- cdn.distribution -> records.target

Application​

application projectdevstagingproduseastprodeuwest

One service or one product, and the things only it uses.

  • Bundles: API or web service, workers and scheduled jobs, database owned by one service, cache, queue, or bucket owned by one service, service alarms and dashboards, tenant control plane.
  • Environments: One per stage, and one per region in production when the service runs in several: dev, staging, produseast, prodeuwest. Previews and workspaces are forks of these.
  • Connects: Components are connected to each other on the canvas. The network, cluster, and credentials arrive as environment defaults.
Example blueprint.yaml alpha
version: 1
project: billing
# No network or cluster components: both arrive as environment defaults.
components:
api: { bundle: web-service, name: Billing API }
worker: { bundle: worker-service, name: Invoice Worker }
cron: { bundle: scheduled-job, name: Nightly Reconciliation }
db: { bundle: aws-rds-postgres, name: Billing Database }
cache: { bundle: aws-elasticache-redis, name: Cache }
queue: { bundle: aws-sqs-queue, name: Invoice Queue }
alarms: { bundle: service-alarms, name: Alarms and Dashboards }
links:
- db.database -> api.database
- db.database -> worker.database
- db.database -> cron.database
- cache.redis -> api.cache
- queue.queue -> api.jobs
- queue.queue -> worker.jobs
- api.service -> alarms.service

Data Platform​

data platform projectdevprod

Warehouse, lake, pipelines, and reporting.

  • Bundles: Warehouse and lake storage, pipelines and orchestration.
  • Environments: Usually two: dev and prod.
  • Connects: Pipelines read application databases by remote reference. Applications do not depend on it.
Example blueprint.yaml alpha
version: 1
project: data
# Pipelines read application databases through remote references,
# set on each data environment.
components:
lake: { bundle: s3-data-lake, name: Data Lake }
warehouse: { bundle: redshift-serverless, name: Warehouse }
pipelines: { bundle: managed-airflow, name: Pipelines }
links:
- lake.bucket -> warehouse.lake
- lake.bucket -> pipelines.lake
- warehouse.warehouse -> pipelines.warehouse

Tenant Stack​

tenant projectacmeglobexinitech

The part of the product that each customer gets a private copy of.

  • Bundles: Customer runtime and database.
  • Environments: One per customer or per cell.
  • Connects: Each tenant environment has a remote reference to the shared control plane, which is an application canvas with one environment per stage.
Example blueprint.yaml alpha
version: 1
project: tenant
# runtime.controlplane is a remote reference to the control plane,
# set on each tenant environment.
components:
runtime: { bundle: tenant-runtime, name: Tenant Runtime }
db: { bundle: aws-rds-postgres, name: Tenant Database }
links:
- db.database -> runtime.database