Files
Sven (AAMOS AI) c32a7e33c7
CI / Typecheck, test & build (push) Failing after 2s
ci: trigga på master + formatfix inför Gitea Actions
2026-08-13 17:25:14 +07:00

70 lines
3.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Cibello Produktionsinfrastruktur — FAS 1 Plan
## Domänstatus
- `cibello.com`**upptagen** (ignorerad)
- `cibello.se`**ledig** (ignorerad)
- `cibello.app`**ledig** ✅ (vald domän)
Ingen domän registrerad eller köpt i denna fas.
## Planresultat
```text
Plan: 63 to add, 0 to change, 0 to destroy.
Planfil: infrastructure/terraform/cibello.plan
```
### Huvudkomponenter
| Komponent | Beskrivning |
| --------- | -------------------------------------------------------------------------------------------- |
| VPC | `cibello-prod-vpc` 10.0.0.0/16, 1 publikt + 2 privata subnät (eu-north-1a/1b) |
| Compute | EC2 `t3.small` Ubuntu 22.04, gp3 30 GB, EIP, docker/compose/git bootstrap |
| Databas | RDS PostgreSQL 16 `db.t4g.micro`, krypterad, 7 dagars backup, deletion protection |
| Lagring | S3 `cibello-production` (lifecycle temporary/7d, scans/90d) + `cibello-web` (CloudFront OAC) |
| IAM | `cibello-app`-roll + instansprofil, least-privilege S3/SSM/KMS + SSM Core |
| Secrets | 4 genererade SSM SecureString + 6 tomma platshållare under `/cibello/prod/*` |
| DNS/CDN | Route53 zon `cibello.app`, ACM-cert (us-east-1), CloudFront-distribution |
| Mail | SES identitet `mail.cibello.app` + DKIM + config set `cibello-prod` |
### DNS-poster planerade
- `cibello.app` / `www.cibello.app` → CloudFront (alias)
- `api.cibello.app` / `admin.cibello.app` → EIP
- SES-verifiering och DKIM-posterna skapas automatiskt.
## Grov månadskostnad (uppskattning)
| Post | Uppskattad kostnad |
| ------------------------------------------------------------------- | -------------------------------- |
| EC2 t3.small (on-demand) | ~$15/mån |
| RDS db.t4g.micro + 20 GB gp3 | ~$12/mån |
| EBS 30 GB gp3 (EC2) | ~$3.20/mån |
| S3 (lagring + förfrågningar) | ~$110/mån beroende på volym |
| CloudFront (dataöverföring) | ~$020/mån beroende på trafik |
| Route53 hosted zone | $0.50/mån |
| ACM-certifikat | $0 |
| SES (första 3 000 mail/mån inom gratisnivån, därefter ~$0.10/1 000) | ~$01/mån |
| Dataöverföring ut | tillkommer vid användning |
| **Totalt** | **~$3262/mån + dataöverföring** |
## Domänkostnad
- `cibello.app` (Route53 Registrar): ~**$14/år** (ungefärligt, pris kan variera något).
## NS-servrar
Name servers genereras först när Route53-hosted zonen skapas vid `apply`. De kan inte anges i förhand.
## Nästa steg (kräver godkännande)
1. Registrera `cibello.app` via AWS CLI (`aws route53domains register-domain`).
2. Kör `terraform apply cibello.plan`.
3. Uppdatera registrar med de NS-servrar som Route53 tilldelar.
4. Fyll i tomma SSM-platshållare med riktiga värden.
---
**Status: FAS 1 klar. Ingen apply, ingen domänregistrering, inga kostnader än.**