# On AWS

> The reference implementation of Sypnia Git on AWS, service by service.

Applies to: Sypnia Cloud (paid service).  
Source: https://git.docs.sypnia.com/architecture/aws/

For agents: AWS: CloudFront (git.app.sypnia.com web + smart HTTP; git.api.sypnia.com; mcp.git.sypnia.com) → ALB → ECS Fargate (Sypnia layer, TS) and ECS on EC2 (Forgejo, repositories on EBS gp3 per shard, or EFS for the first phase); NLB TCP 22 for ssh.git.sypnia.com; RDS Postgres (shared Sypnia cluster, own database); S3 (LFS, assets, nightly bundles, versioned, cross-region copy); SQS + DLQ (events, jobs); Lambda workers (webhooks, mirrors, imports); EventBridge (events to Run, Cases, Agent); SSM/KMS (secrets, GitHub App key).

| Service                                           | What it does here                                                                                                       |
| ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| **CloudFront**                                    | the web interface and git over HTTPS (`git.app.sypnia.com`), the API (`git.api.sypnia.com`), MCP (`mcp.git.sypnia.com`) |
| **Network Load Balancer**                         | SSH on port 22 (`ssh.git.sypnia.com`)                                                                                   |
| **ECS**                                           | Sypnia's layer (Fargate) and the git engine (on EC2, close to its disks)                                                |
| **EBS or EFS**                                    | the repositories: EFS to start, EBS per shard when size and speed ask for it                                            |
| **RDS Postgres**                                  | the engine's metadata and Sypnia's tables                                                                               |
| **S3**                                            | LFS, release files and nightly bundles, versioned and copied to a second region                                         |
| **SQS** (with a dead-letter queue) and **Lambda** | events and jobs: webhooks, mirrors, imports, exports                                                                    |
| **EventBridge**                                   | events for Run, Cases and Agent                                                                                         |
| **SSM and KMS**                                   | secrets, including the GitHub App's private key                                                                         |
