The ways to host a small web app on Amazon, what each costs, how locked-in each one makes you, and why one small server is the right first step.
Prices are rough monthly figures for us-east-1, low traffic, September 2026. Check the AWS pricing calculator before buying.
A few hundred MB of memory. The heavy work, reading the draft screen, runs in each player's browser, not on the server.
Accounts, stars, box setups and labelled pictures live in one SQLite file. It needs a disk that stays put.
The login throttle and caches are in memory. That's fine on one server; a fleet would need a shared store.
The monthly bill at our size, including the easily missed items: load balancers, public IPs, managed databases.
Could we move to another cloud, or back home, in an afternoon? You're fine being Amazon-specific only for S3 and CloudFront.
How many moving parts, and how much there is to learn and look after: deploys, TLS, backups, updates.
What happens to the SQLite file if the machine dies, and how fast we can get it back.
A plain virtual machine. You install Docker and run our compose file. Full control; you patch the OS.
EC2's simple sibling: a VM at a flat price with a public IP and data transfer included. Same Docker setup.
AWS runs your container with no server to manage. No lasting local disk, and it needs a load balancer.
Push an image and get a URL with HTTPS. Very easy, but no lasting disk, so the data must go elsewhere.
Functions per request, billed per call. Cheap at rest, but our app would need restructuring and a different database.
About $73/month for the control plane alone, before any servers. Built for fleets, not one container.
The "serverless" options aren't expensive to run. They're expensive to move to: they force a database change we don't otherwise need.
| Option | What you pay for | ≈ per month | Code changes |
|---|---|---|---|
| Lightsail 2 GB | Flat plan: VM, 60 GB SSD, public IPv4, 3 TB transfer | $12 | none |
| EC2 t4g.small | VM $12 + 20 GB disk $1.60 + public IPv4 $3.65 | $17 | none |
| App Runner + RDS | Small instance ~$5–15 + RDS db.t4g.micro ~$13 + storage | $25–35 | move to Postgres |
| ECS Fargate + ALB + RDS | Task ~$9 + load balancer ~$18 + RDS ~$15 | $40+ | move to Postgres |
| Lambda + DynamoDB | Near $0 idle, but a restructure | $0–5 | large rewrite |
| EKS | Control plane $73 + nodes | $100+ | Kubernetes |
Easy to miss: AWS charges ~$3.65/month for every public IPv4 address (Lightsail plans include one), and a load balancer costs ~$16–18/month even with no traffic.
Gets and renews Let's Encrypt certificates by itself, which saves ~$18/month versus an AWS load balancer with a certificate.
Copies every SQLite change to S3 within seconds. Restoring on a new server is one command.
MODEL and live run the identical container. Only settings differ (login mode, admin network).
| Piece | Amazon-specific? | If we left AWS |
|---|---|---|
| Virtual machine (Lightsail / EC2) | no | Any VM anywhere: Hetzner, DigitalOcean, or back home |
| Docker Compose + Caddy + app image | no | Copy the folder and run the same command |
| Litestream → S3 | S3 API, which you accept | Point it at Backblaze B2, Cloudflare R2 or MinIO: one setting |
| CloudFront (optional) | yes, which you accept | Drop it, or use any CDN |
| Email for verification (later) | no, if sent over plain SMTP | SES, Postmark or Mailgun: just change the SMTP settings |
Everything that holds our logic or data can move. Amazon supplies the machine and the backup bucket.
Limits: fixed plan sizes, and fewer AWS integrations, which we don't need.
Costs: more settings to get right. The IP, disk and transfer are billed separately.
Either way the app is the same Docker Compose setup. Choosing Lightsail now doesn't lock anything in.
Later: put CloudFront in front of /static/ only. That's a cheap win with no login side effects.
Already done in the app: hashed passwords, HttpOnly/Secure cookies, login throttling, cross-site write blocking, and a spoof-proof client address.
# on the server, what "deploy" boils down to cd /opt/dotapicker docker compose pull # the new image docker compose up -d # replaces the app container; Caddy and Litestream keep running curl -fsS https://dotapicker.example/health
No AWS deploy service needed: the same steps would work on any Linux server. The GitLab registry keeps even the image storage off Amazon.
Start with the simplest thing that is safe. The path to scale stays open, and we only pay for it once we need it.
Recommended: Lightsail 2 GB (~$12). Flat price, simplest.
Which name players will use, and where its DNS lives (any registrar works).
Closest to most players. us-east-1 is cheapest and has the most services.
Recommended: later, and for /static/ only.
For verification and resets, over SMTP so it stays swappable. SES is cheapest; Postmark is simplest.
GitLab's own registry (no Amazon) or ECR (Amazon). Recommended: GitLab.
About $12–17 a month, not tied to Amazon beyond S3, and running the same container you're testing on MODEL today. Next step once MODEL checks out: an AWS compose file (app, Caddy, Litestream), a settings template, and a one-command deploy.