# On AWS

> How Sypnia Cloud runs App on AWS, part by part.

Applies to: Sypnia Cloud (paid service).  
Source: https://app.docs.sypnia.com/architecture/reference-implementation-aws/

For agents: AWS reference (us-east-1): CloudFront in front of S3 (web interface, static, also serves /download and updates.json) and the App server; App server as Rust Lambda functions (API with response streaming for SSE; MCP; notification sender), behind CloudFront with function URLs; Postgres on the shared Sypnia RDS (schema sypnia_app, its own role); SQS + DLQ for notifications and ledger writes from products; EventBridge receives task, alert and renewal events from Agent, Telemetry and Domains; Web Push from the sender Lambda; e-mail through Sypnia Mail; uploads in Sypnia Files; secrets in SSM Parameter Store/KMS (PayPal client secret, webhook id, VAPID private key, update signing key kept offline). Desktop builds signed in CI and uploaded to S3.

| Part                                      | On AWS                                                                                                                   |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| Web interface, downloads, update manifest | S3 behind CloudFront at `app.sypnia.com`                                                                                 |
| API and MCP                               | Rust on Lambda, with response streaming for the chat, behind CloudFront at `app.api.sypnia.com` and `mcp.app.sypnia.com` |
| Database                                  | the schema `sypnia_app` in Sypnia's shared Postgres (RDS), with its own role                                             |
| Events from products                      | EventBridge: task events from Agent, alerts from Telemetry, renewals from Domains                                        |
| Notifications and ledger writes           | SQS queues with dead-letter queues, read by Lambda                                                                       |
| Phone and browser notifications           | Web Push, sent by the notification Lambda                                                                                |
| E-mail                                    | Sypnia Mail                                                                                                              |
| Attachments                               | Sypnia Files                                                                                                             |
| Secrets                                   | SSM Parameter Store, encrypted with KMS; the desktop update signing key is kept offline and used only in the release job |

The desktop app is built and signed in the release job and uploaded to S3, with its update manifest.
