AWS
The AWS template: Lambda, CloudFront, S3 and RDS or your Postgres in your account.
deploy/aws.yaml creates in your account: the engine as a Lambda function behind CloudFront (API), a second CloudFront distribution for content with the transform function, an S3 bucket with SSE-KMS, a KMS key, and RDS PostgreSQL or the connection to yours. Parameters: Domain, ContentDomain, CertificateArn, DatabaseUrl, JwksUrl, Scan (none, guardduty).
aws cloudformation deploy --template-file deploy/aws.yaml --stack-name sypnia-files --parameter-overrides Domain=files.example.com ContentDomain=cdn.example.net CertificateArn=arn:aws:acm:… --capabilities CAPABILITY_IAMUse a content domain that is not a subdomain of your app’s main domain, so uploaded files can never read your app’s cookies.