The Grand Aurora Hotel
Emerald & brass Art Deco
A hotel SaaS platform has a control plane, a shared production cell, and a dedicated enterprise account. Tenant discovery chooses a destination; the destination still has to authorize the guest.
Authored brief · fictional system
Design a fictional multi-tenant hotel SaaS on AWS with control-plane, pooled-production, dedicated-enterprise and security accounts. Show staff federation, tenant discovery, pooled versus siloed data planes, scoped cross-account provisioning and central audit. Keep network, database replication and authorization details in the two companion views. Distinguish credential, request and provisioning arrows.
Design a fictional multi-tenant hotel SaaS on AWS with control-plane, pooled-production, dedicated-enterprise and security accounts. Show staff federation, tenant discovery, pooled versus siloed data planes, scoped cross-account provisioning and central audit. Keep network, database replication and authorization details in the two companion views. Distinguish credential, request and provisioning arrows.
2 · Diagram
How do independent hotels share a platform without sharing authority?
Whole diagram fitted. For larger labels, turn off “Fit whole diagram” and pan, or open the full-size SVG.
Mermaid source
Download .mmdSemantic content and gallery-only boundary/flow annotations stay in this file. The drawing treatment is applied after layout.
architecture-beta
%% Fictional SaaS deployment overview. Network and isolation details have focused companion views.
%% @boundary control account
%% @boundary controlRegion region
%% @boundary pooled account
%% @boundary pooledRegion region
%% @boundary pooledVpc vpc
%% @boundary enterprise account
%% @boundary enterpriseRegion region
%% @boundary enterpriseVpc vpc
%% @boundary security account
%% @boundary securityRegion region
group control(cloud)[Account: Control plane]
group controlRegion(cloud)[Region: Primary] in control
group pooled(cloud)[Account: Pooled production]
group pooledRegion(cloud)[Region: Primary] in pooled
group pooledVpc(cloud)[VPC: Shared hotel cell] in pooledRegion
group enterprise(cloud)[Account: Enterprise hotel]
group enterpriseRegion(cloud)[Region: Primary] in enterprise
group enterpriseVpc(cloud)[VPC: Dedicated cell] in enterpriseRegion
group security(cloud)[Account: Security archive]
group securityRegion(cloud)[Region: Primary] in security
service identity(aws:cognito)[Staff federation] in controlRegion
service discovery(aws:lambda)[Tenant discovery] in controlRegion
service tenants(aws:dynamodb)[Tenant directory] in controlRegion
service provision(aws:step-functions)[Cell provisioner] in controlRegion
service sharedIngress(aws:api-gateway)[Shared cell API] in pooledRegion
service sharedApp(aws:fargate)[Shared app service] in pooledVpc
service sharedDb(aws:aurora)[Pooled booking DB] in pooledVpc
service dedicatedIngress(aws:api-gateway)[Dedicated cell API] in enterpriseRegion
service dedicatedApp(aws:fargate)[Dedicated app service] in enterpriseVpc
service dedicatedDb(aws:aurora)[Dedicated booking DB] in enterpriseVpc
service deployRole(aws:iam)[Cell deploy role] in enterprise
service stack(aws:cloudformation)[Cell stack] in enterpriseRegion
service trail(aws:cloudtrail)[Organization trail] in securityRegion
service logs(aws:s3)[Central audit logs] in securityRegion
%% @edge identity discovery identity | Staff presents issued JWT; discovery verifies issuer, audience and tenant membership.
identity:R --> L:discovery
%% @edge discovery tenants request | Resolve validated tenant to its cell; directory is not an authorization bypass.
discovery:R --> L:tenants
%% @edge discovery sharedIngress control | Return pooled-cell API endpoint to the browser; not a server proxy request.
discovery:B --> T:sharedIngress
%% @edge discovery dedicatedIngress control | Return enterprise-cell API endpoint to the browser; each cell reauthorizes the tenant.
discovery:T --> L:dedicatedIngress
%% @edge sharedIngress sharedApp request | API private integration reaches application tasks; VPC Link and internal ALB are expanded in the identity view.
sharedIngress:R --> L:sharedApp
%% @edge sharedApp sharedDb request | Transactional booking access with server-derived tenant context and database policies.
sharedApp:T --> B:sharedDb
%% @edge dedicatedIngress dedicatedApp request | Dedicated API private integration reaches its own application service; same-account network detail is expanded separately.
dedicatedIngress:R --> L:dedicatedApp
%% @edge dedicatedApp dedicatedDb request | Separate account and database isolate the enterprise data plane.
dedicatedApp:R --> L:dedicatedDb
%% @edge provision deployRole control | Provisioner assumes a tightly scoped cross-account deployment role.
provision:R --> L:deployRole
%% @edge deployRole stack control | Assumed role authorizes CloudFormation in the dedicated account.
deployRole:R --> L:stack
%% @edge stack dedicatedApp control | Stack owns cell resources; arrow summarizes provisioning, not runtime traffic.
stack:B --> T:dedicatedApp
%% @edge sharedApp trail control | AWS API activity is captured by the configured organization trail, not application log streaming.
sharedApp:B --> L:trail
%% @edge dedicatedApp trail control | Organization coverage includes the enterprise account; application logs are separate.
dedicatedApp:B --> T:trail
%% @edge trail logs event | Central S3 delivery requires organization-trail bucket and encryption-key policies.
trail:R --> L:logs
Reproduce this collection from the Beautiflow repository:
bun scripts/build-boring-diagrams.tsMeasured evidence
Full evidence JSON- Native geometry
- 0 findings across 8 measured checks
- Styled render integrity
- 0 element, plain-label, ID or reference findings
- Authored annotations
- 10 boundaries · 14 relationship meanings
- AWS configuration
- Not validated
These checks do not establish visual quality, every decorative mark, browser glyph ink, edge-label boxes or deployed AWS correctness. Architecture has guarded transforms, not automatic polish.
Source SHA-256
27cb9a76757c0f0ad7d04976961674812846964ba716cbe8d067eb0b5c879b09Read all 14 relationships
Line patterns distinguish requests, credentials, events, replication, configuration/control and recovery. Hover a styled connector for its meaning. Native layout preserves routes but does not include these gallery annotations.
| From | To | Kind | Meaning |
|---|---|---|---|
| Staff federation | Tenant discovery | identity | Staff presents issued JWT; discovery verifies issuer, audience and tenant membership. |
| Tenant discovery | Tenant directory | request | Resolve validated tenant to its cell; directory is not an authorization bypass. |
| Tenant discovery | Shared cell API | control | Return pooled-cell API endpoint to the browser; not a server proxy request. |
| Tenant discovery | Dedicated cell API | control | Return enterprise-cell API endpoint to the browser; each cell reauthorizes the tenant. |
| Shared cell API | Shared app service | request | API private integration reaches application tasks; VPC Link and internal ALB are expanded in the identity view. |
| Shared app service | Pooled booking DB | request | Transactional booking access with server-derived tenant context and database policies. |
| Dedicated cell API | Dedicated app service | request | Dedicated API private integration reaches its own application service; same-account network detail is expanded separately. |
| Dedicated app service | Dedicated booking DB | request | Separate account and database isolate the enterprise data plane. |
| Cell provisioner | Cell deploy role | control | Provisioner assumes a tightly scoped cross-account deployment role. |
| Cell deploy role | Cell stack | control | Assumed role authorizes CloudFormation in the dedicated account. |
| Cell stack | Dedicated app service | control | Stack owns cell resources; arrow summarizes provisioning, not runtime traffic. |
| Shared app service | Organization trail | control | AWS API activity is captured by the configured organization trail, not application log streaming. |
| Dedicated app service | Organization trail | control | Organization coverage includes the enterprise account; application logs are separate. |
| Organization trail | Central audit logs | event | Central S3 delivery requires organization-trail bucket and encryption-key policies. |
Architecture assumptions & omissions
- Scope: deployment overview. Cell services and Aurora clusters are aggregates, not single-AZ instances. The companion views expand identity/isolation and one pooled cell’s availability/recovery design. They are authored views, not automatic projections.
- Assumptions: tenant onboarding writes an authoritative tenant-to-cell directory; discovery returns an endpoint to the browser. Each cell independently verifies identity, tenant assignment and membership. Discovery is not a trusted authorization shortcut.
- The enterprise account has separate credentials, application resources and database. Pooled isolation additionally needs transaction-local validated tenant context, a non-owner database role, forced row-level policies and tests for bypass paths.
- Provisioning uses an allowlisted cross-account role and CloudFormation. Organization-trail coverage, central bucket policy, KMS permissions and retention must be configured; API audit capture is not application-log capture. No deployed configuration is supplied.