Reference implementation on AWS
Every AWS service Sypnia AI uses in Sypnia Cloud, and how.
| Service | Used for |
|---|---|
| AWS Lambda | the gateway (Rust, arm64), with response streaming so long answers flow as they are written; one function for the API and one for MCP |
| Amazon CloudFront | ai.api.sypnia.com and mcp.ai.sypnia.com, TLS, and a first layer of protection against floods |
| Amazon Bedrock | the 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 |
| OpenRouter | the other providers, over HTTPS, with Sypnia’s account key in Secrets Manager and the zero-retention rule on every request |
| RDS for PostgreSQL | the sypnia_ai schema, on the suite’s shared instance, through RDS Proxy |
| Amazon SQS | usage records on their way to the suite’s credits ledger, with a dead-letter queue |
| Amazon S3 | kept questions and answers and the response cache, deleted by lifecycle rules, encrypted with KMS and a data key per project |
| AWS KMS, Secrets Manager | encryption keys, provider keys and your own provider keys |
| EventBridge Scheduler | daily usage totals, dropping old days of call records, notices before a model retires |
| Amazon CloudWatch | alarms 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.