Skip to content

Install on AWS

The engine's CloudFormation stack, its parameters, the permissions it needs and how to remove it.

Applies to Engine
View as Markdown
On this page
  1. What the stack creates
  2. Parameters
  3. Permissions
  4. Removing it
Terminal
npx @sypnia/run engine install --region us-east-1 [--domain run.example.com --certificate-arn arn:aws:acm:…]

The command packages nothing on your machine: it deploys the published template deploy/engine.yaml of the engine’s version with the parameters you give.

What the stack creates

ResourcePurpose
Lambda functions run-api, run-deployerthe engine
An RDS PostgreSQL instance (db.t4g.micro), or your database with --database-urlthe engine’s state
An S3 bucket sypnia-run-<account>-<region>sources, artifacts, static files, caches
CodeBuild projectsbuilds in your account
SQS queues and their dead-letter queuesthe engine’s work
A CloudFront distribution with the edge routerevery app’s address
An Application Load Balancer, created on the first Fargate appcontainers
A KMS key and Parameter Store pathssecrets
IAM roles: API, deployer, build, and per-app execution roles created on demandleast privilege

Parameters

ParameterDefaultMeaning
DomainnoneThe engine’s own address (run.example.com); without it, the CloudFront address
CertificateArnnoneCertificate for Domain, in us-east-1
AppsDomainnoneA wildcard domain for apps (*.apps.example.com), so each app gets <app>.apps.example.com
DatabaseUrlcreates RDSUse an existing Postgres 14+
ContainerSupporttrueCreates the VPC pieces for Fargate on first use
AlarmEmailnoneWhere dead-letter and error alarms are sent

Permissions

Installing needs permission to create the resources above. Day to day, the engine’s roles can only manage resources tagged sypnia-run, in the stack’s region.

Removing it

npx @sypnia/run engine uninstall deletes every app stack first (asking for confirmation), then the engine’s stack. The S3 bucket and the database are kept unless you add --delete-data.

  1. What the stack creates
  2. Parameters
  3. Permissions
  4. Removing it

    Search pages, sections and terms