Skip to content

On AWS

The reference implementation of Sypnia Cases on AWS, service by service.

Applies to Cloud
View as Markdown
ServiceWhat it does here
CloudFrontserves the editor (cases.app.sypnia.com) from S3, and fronts the API (cases.api.sypnia.com) and MCP (mcp.cases.sypnia.com), which have a certificate of their own (ACM). A viewer function passes the host people used, so the server tells the API from MCP; on a 401, a small Lambda@Edge function gives the answer its WWW-Authenticate header back, which MCP clients need to start signing in
S3the editor’s files (exports come straight from the API)
Lambda (Node 22, arm64)the server, sypnia-cases-api (512 MB, 30 seconds a request): API and MCP, behind CloudFront, which adds a shared header the function checks (CASES_ORIGIN_SECRET). It reads its secrets from SSM when it starts; a second function, woken every minute by EventBridge, sends the review e-mails that are due and runs the other background jobs
SQS (with a dead-letter queue)background jobs: writing a version to the repository, e-mails, warming links
EventBridgemap.version.created and proposal.opened for the other products. For your app, Sypnia Run creates one bus per app environment for its cases’ outcomes
SQS for your casesone queue per listening case (FIFO when it has order_by), with its dead-letter queue, created by Sypnia Run from the map (Delivery)
Sypnia Datathe cases schema in Sypnia’s own Data database, on the shared Postgres, with a login of its own; sign-in through the Sypnia account at auth.sypnia.com. Cases calls Data’s control plane on behalf of the person it verified, with a key the two share (Security)
SSM Parameter Store and KMSthe server’s secrets, encrypted: its database address, the key shared with Data’s control plane, CASES_SECRET_KEY and the origin secret; repository tokens
Sypnia Mailreview requests and notices

Everything runs in us-east-1, next to the other Sypnia products, so links between products stay inside one region.

    Search pages, sections and terms