Skip to content

Reference implementation on AWS

Every AWS service Sypnia AI uses in Sypnia Cloud, and how.

Applies to Cloud
View as Markdown
ServiceUsed for
AWS Lambdathe gateway (Rust, arm64), with response streaming so long answers flow as they are written; one function for the API and one for MCP
Amazon CloudFrontai.api.sypnia.com and mcp.ai.sypnia.com, TLS, and a first layer of protection against floods
Amazon Bedrockthe AWS-hosted models, in the same region, through an IAM role; a customer’s own Bedrock through a role in their account, assumed with an external id
OpenRouterthe other providers, over HTTPS, with Sypnia’s account key in Secrets Manager and the zero-retention rule on every request
RDS for PostgreSQLthe sypnia_ai schema, on the suite’s shared instance, through RDS Proxy
Amazon SQSusage records on their way to the suite’s credits ledger, with a dead-letter queue
Amazon S3kept questions and answers and the response cache, deleted by lifecycle rules, encrypted with KMS and a data key per project
AWS KMS, Secrets Managerencryption keys, provider keys and your own provider keys
EventBridge Schedulerdaily usage totals, dropping old days of call records, notices before a model retires
Amazon CloudWatchalarms on provider error rates, time to first token and the dead-letter queue

Everything runs in us-east-1, next to the rest of Sypnia Cloud. The gateway’s own traces go to Sypnia Telemetry.

    Search pages, sections and terms