Skip to content

Reference implementation on AWS

Every AWS service Run uses, what for, and how it is set up.

Applies to EngineCloud
View as Markdown
Figure. Sypnia Run on AWS: the control plane on the left, the data plane your visitors reach on the right.
Read this diagram as text

The control plane is a Lambda function for the API behind CloudFront, a Postgres database, SQS queues for builds and deploys, CodeBuild for builds, and a Lambda deployer. The data plane is one CloudFront distribution with an edge function and a key-value store, an S3 bucket of artifacts, Lambda functions and Fargate services per app, EventBridge Scheduler for jobs and SQS for app queues. Secrets live in Parameter Store, encrypted with KMS keys per project.

ServiceUsed forSetup
Amazon CloudFrontevery app’s address, TLS, cachingmulti-tenant distribution per cell; custom domains as distribution tenants with their own ACM certificates
CloudFront Functions + KeyValueStorethe edge router: host → deployone KVS per cell; updates are the release step
Amazon S3build sources, artifacts, static files, build cacheone bucket per cell, prefix per project/app/deploy; only CloudFront (origin access control) reads static files
AWS Lambdathe Run API, the deployer, SSR servers, functions, Lambda containers, queue consumersone function per app server or function, a version per deploy, alias per environment; function URLs signed by CloudFront
AWS Fargate (ECS)always-on containersone service per app and environment, behind an Application Load Balancer per cell with host-based rules
Amazon ECRcontainer imagesa repository per app, images by digest per deploy
AWS CodeBuildbuildsone project per build image; each build assumes the project’s build role
Amazon EventBridge Schedulerscheduled jobsone schedule per job and environment, targeting the job’s function or an ECS task
Amazon SQSthe control plane’s work queues; app queues and their dead-letter queuesFIFO for deploy steps per app, standard for app queues
AWS Systems Manager Parameter Storevariables and secretsSecureString per variable, path per project/app/environment
AWS KMSencrypting secrets and artifactsone key per project
AWS Certificate Managercertificates for custom domainsDNS validation, automatic renewal
Amazon CloudWatch Logsapp and build logslog group per app and environment, retention per plan
Amazon RDS for PostgreSQLthe control plane’s stateMulti-AZ in Sypnia Cloud

Cells

Sypnia Cloud runs projects in cells: AWS accounts that each hold a share of the projects, with their own CloudFront distribution, bucket, load balancer and quotas. A cell’s failure or quota limit affects only its projects, and a busy project can be moved to a cell of its own. Isolation explains the boundaries inside a cell.

    Search pages, sections and terms