# Reference implementation on AWS

> Every AWS service Domains uses in Sypnia Cloud, and how.

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

For agents: Domains on AWS: Route 53 Domains (availability, prices, registration, renewal, transfers, inter-account transfer, contacts, privacy, lock, auth codes; us-east-1 API), Route 53 hosted zones (ALIAS to Run CloudFront), KMS (DNSSEC KSK ECC P-256 in us-east-1, contact encryption), Lambda (API, operations runner, DNS manager, connections manager, reconciler), SQS (operations and change batches paced under Route 53 limits, DLQ), EventBridge Scheduler (renewals, reminders, polling), EventBridge (product events), RDS Postgres, CloudFront, CloudWatch alarms.

**Figure**: Sypnia Domains on AWS: the API, the operations queue, Route 53 for registrations and zones, and the state in RDS.

The API runs on Lambda behind CloudFront. Long operations go through an SQS queue to the operations runner, which polls Route 53 Domains on a schedule. The DNS manager writes Route 53 hosted zones. State lives in Postgres on RDS.

| Service                   | Used for                                                                                                                                                                   |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Route 53 Domains**      | availability, prices, registration, renewal, transfers in, transfer between AWS accounts, contacts, privacy, transfer lock, auth codes. Its API is served from `us-east-1` |
| **Route 53 hosted zones** | the zones and records; `ALIAS` records to Run's CloudFront distributions; health of the four name servers                                                                  |
| **KMS**                   | DNSSEC key-signing keys (asymmetric, ECC P-256, in `us-east-1`), and encryption of contact data                                                                            |
| **Lambda**                | the API, the operations runner, the DNS manager, the connections manager, the reconciler                                                                                   |
| **SQS**                   | operations and DNS change batches, paced under Route 53's request limits, with a dead-letter queue                                                                         |
| **EventBridge Scheduler** | renewal checks, reminders, operation polling                                                                                                                               |
| **EventBridge**           | events from Run, Mail, Data and Files (resource deleted, certificate issued) to the connections manager                                                                    |
| **RDS for PostgreSQL**    | the `sypnia_domains` schema                                                                                                                                                |
| **CloudFront**            | `domains.api.sypnia.com`                                                                                                                                                   |
| **CloudWatch**            | alarms on failed operations, failed renewals, and drift found by the reconciler                                                                                            |
