A client we work with got into the AWS credits program. Good deal. They built everything on AWS and paid nothing for a while. Then the credits ran out, and now the bill comes out of their own pocket.

I get why they started there. AWS makes a lot of things easy. Database, load balancer, storage, email, it's all a few clicks away, and when someone else is paying you don't think twice about it. But that convenience costs money, and a lot of startups only find out how much once the credits are gone.

So we're moving them off. I'm writing this for anyone in the same spot, who wants to leave AWS for something cheaper and isn't sure what to use instead. Here's every AWS service in a normal production setup and what we're replacing it with.

Why the bill suddenly matters

AWS is not the problem. It's brilliant, and the convenience is real. But convenience is something you pay for, and credits hide that price. While they cover everything, nobody looks closely at the bill.

Once you're paying, the costs show up in places you didn't expect. The EC2 instance is predictable. It's everything around it: NAT gateways, egress fees, snapshots you forgot about, a load balancer that costs more than the server behind it. For an early product you end up paying for insurance against a traffic spike that hasn't arrived yet.

There's a quieter cost too: complexity. IAM policies, security groups and VPC subnets all exist for good reasons at scale. But when it's a small team shipping features, every hour spent on cloud plumbing is an hour not spent on the product.

That makes a live but still early product a good candidate to move. The destination: one VPS running Coolify, with Cloudflare in front of it.

The swaps, service by service

AWS service What we're using instead Cost
Route 53 Cloudflare DNS $0
CloudFront Cloudflare CDN $0
S3 Cloudflare R2 $0 up to 10 GB, zero egress fees
EC2 VPS + Coolify (Hetzner, DigitalOcean, Spaceship) $5 to $15/mo
Application Load Balancer Traefik (ships with Coolify) or Caddy $0
Lambda Cloudflare Workers, or a worker container on the VPS $0 up to 100k requests/day
RDS (Postgres) Postgres in Docker, or Neon's free tier $0
DynamoDB Redis on the VPS, or Upstash $0
SQS Redis + BullMQ $0
SES Resend (3k emails/mo free) or Brevo (300/day free) $0
CloudWatch Uptime Kuma + Netdata $0
CloudFormation Docker Compose + Git $0

A few notes on the ones that matter most:

Cloudflare quietly replaces three services. DNS, CDN and object storage, all on the free plan. R2 is the standout because egress is free. On S3, bandwidth is where the bill sneaks up on you. On R2 it's simply not a line item.

Coolify turns a $6 VPS into your own mini Heroku. Git push to deploy, automatic SSL, one-click Postgres and Redis, and Traefik doing the load balancer job out of the box. This is the piece that makes the whole migration feel easy instead of painful.

You probably don't need DynamoDB. The fast-lookup, atomic-update job it does is handled fine by Redis, and honestly at most scales by Postgres alone with SELECT ... FOR UPDATE. The pattern matters, not the product.

Queues are free. Redis plus BullMQ gives you the same decoupling SQS gives you: if the worker dies, jobs wait in the queue until it comes back.

The honest trade-offs

I'm not going to pretend this stack is strictly better. You're giving up real things:

  • Autoscaling. There's no free equivalent. If traffic spikes 100x overnight, AWS adds servers while you sleep. A VPS just falls over. Your options are resizing the server or adding a second one manually.
  • Multi-AZ failover. If your VPS dies, you're down until you restore from backup. So take backups seriously: automated database dumps to R2, and actually test a restore once.
  • Managed everything. Postgres upgrades, security patches, disk space. On AWS someone else worries about these. Now that someone is you. Coolify softens this a lot, but it doesn't remove it.
  • Security. You lose IAM, KMS and CloudTrail, so the basics are on you: key-only SSH, a firewall, a database that isn't exposed to the internet, and scoped access tokens. R2 encrypts files at rest by default and Coolify sets up free SSL, so the encryption basics are mostly handled.

Who should stay on AWS: anyone with real traffic spikes, compliance requirements, or a team big enough that the cloud bill is smaller than the salary cost of self-managing. If that's you, AWS is worth every dollar.

For the rest of us, here's the uncomfortable truth: one well-configured VPS can comfortably serve tens of thousands of users for most apps. Most products die of no users, not too many.

The final stack

What the whole thing looks like end to end:

  1. Cloudflare handles DNS, caches static files at the edge, and holds uploads in R2.
  2. One VPS running Coolify, with Traefik routing traffic to the app containers, Postgres and Redis sitting on an internal Docker network with no exposed ports.
  3. A worker container (BullMQ) picks jobs off the queue and calls Resend for emails.
  4. GitHub Actions builds the Docker image on push, Coolify deploys it.
  5. Uptime Kuma pings everything and alerts me if something dies.

Total: roughly $5 to $15 a month, depending on the VPS. The same architecture on AWS, with a load balancer, NAT gateway, RDS and the rest, starts at several times that before you've served a single user.

Before the credits run out

If you're on AWS credits right now, look at what your setup would cost at full price before the credits end, not after. Add it up service by service. That number is what you'll actually be paying, and it's a lot easier to move while the product is small and nobody is panicking over an invoice.

AWS is still a great place to be when you need what it gives you. But most early products don't need it yet, and paying for scale you don't have is how a healthy startup ends up with a cost problem. A small VPS, Cloudflare and a few free tools can carry you a long way. And if the traffic ever justifies it, you can always move back.

If you've made this move before, or you're about to, tell me in the comments what your stack looks like. I'd like to see how other people set it up.