Skip to content

A reference implementation on AWS, service by service

Every AWS service Sypnia Data uses, what it does, where the Rust runs, its limits, and what it costs at small scale.

Applies to EngineCloud
View as Markdown
On this page
  1. The services
  2. Limits that matter
  3. Cost at small scale

This is the deployment the AWS template creates, and the shape Sypnia Cloud runs Cloud.

Figure. Sypnia Data on AWS. One address, one function running the Rust engine, your database, and managed services around them.
  1. Apps, agents and the console call one HTTPS address per project.
  2. CloudFront terminates TLS for the wildcard host and forwards the request, host included.
  3. One Lambda function runs the engine binary: auth, Data API, SQL and MCP.
  4. Postgres holds every project’s data, one database per project.

The services

AWS serviceWhat it does hereRust or managed
CloudFrontOne HTTPS address per project (<ref>.data.example.com, a wildcard certificate), forwards the host so the engine knows the project; caches only the public keys (/.well-known/jwks.json, 5 minutes)Managed
Lambda, function sypnia-dataRuns the engine: every endpointRust: the sypnia-data binary, arm64, provided.al2023, 512 MB
RDS for PostgreSQLProjects’ databases. Or any Postgres 14+ of yoursManaged
KMSOne key; it encrypts the data keys that encrypt signing keys and stored credentialsManaged
SSM Parameter StoreConnection strings and engine settings, as SecureStringsManaged
SES (or your provider)Sends auth e-mails; bounces and complaints come back through SNS and suppress the addressManaged
CloudWatchLogs (30 days) and alarms: errors, throttles, database connections near the limitManaged
IAMOne role for the function, with the least it needsManaged

Not needed: no VPC, no NAT gateway, no load balancer, no queue, no cache cluster. The database is reached over TLS with strong credentials and a security group; put it in a VPC with the function if your policies require it (then add an SES VPC endpoint).

Limits that matter

ServiceLimitEffect
Lambdareserved concurrency (default 5 in the template)caps database connections; raise it with the database size
Lambda6 MB responsebigger Data API responses are refused; page instead
CloudFront60 s origin timeoutSQL statements are capped below it
RDSmax_connections by instance sizesee Scaling and connection pooling
SESyour account’s sending quotathe project’s e-mail quota sits below it

Cost at small scale

Prices are AWS’s public list prices for us-east-1 on 2026-11-17; recompute before relying on them.

ItemIdlePer 1 million requests
Lambda (arm64, 512 MB, ~20 ms average)0≈ USD 0.37
CloudFront0≈ USD 1.00 (requests) plus data out
KMSUSD 1 per key per monthdata keys are cached: near 0
SSM, CloudWatch logs≈ USD 0.50small
SES0USD 0.10 per 1 000 e-mails
RDS db.t4g.micro≈ USD 12 per month—

A small project costs roughly the database plus a dollar or two.

  1. The services
  2. Limits that matter
  3. Cost at small scale

    Search pages, sections and terms