Some free database options:
- Neon (Postgres)
- ElephantSQL (Postgres)
- MongoDB Cloud
- PlanetScale (MySQL)
- Supabase (Postgres)
Some free database options:
You wanna save money and don’t need guaranteed uptime: ec2 => t4g.micro as spot. put it in an ASG with time based uptime and keep the count of min/max/desired instanves at 1. depending on AZ, you’re pretty unlikely to be terminated (5-20%) and as it is a hobby project, some downtime could be acceptable.
T4g.small is 0.0058$/hr in Frankfurt and with an uptime of 365 hrs (half a month) you’d pay 2.1$ for the instance and 1.6$ for the storage, if you use gp3.
Spot instance prices are subject to change, though.
Use planetscale instead. You cannot get cheaper than free https://planetscale.com/pricing
If the data is small enough you could put it in Route53! ^/s^sort_of
Ha, yeah, I almost said “will probably be free”
Cockroachdb serverless, you’ll stay within free tier. You can also choose which cloud provider and region you’d like to be on, that way you can have similar latency to RDS when connecting from the same AWS region.
You can always use encryption. Just don’t store your key in Route 53
For my side project I get and use a little bit of free managed MongoDB storage at https://www.mongodb.com/
If you don’t know why it costs what it does, you should really do more research on how AWS billing works with the services you are using. But what you are doing is pretty transparent, cost per hour * 720 per month for the server itself. Number of tables is irrelevant. 1 or 1000 could cost the same. The other factor is storage. 1 table can be several gigabytes or a few kilobytes. But seems like you chose 20 gigabytes. The cost for this is listed. You can calculate it.
I emphasize this because costs can get out of control if you don’t understand. People regularly get $100’s to $1000’s billed thinking it was only going to be a few dollars. So please make sure spend time learning this and how to prevent it.
As others have said, you probably don’t need a full database server if you are simply using a single table. However no one can truly say that without knowing your use case.
Eat less
Create a new AWS account and take advantage of the free tier offerings.
Also turn off nightly snapshots, you’ll get charged for the storage.
If it’s a simple table that you only query a few times a day and you’re concerned about a $12/month cost (t4g.micro), then you could probably just roll your own DB solution for zero costs. Throw a sqlite file on your EC2 instance ![]()
Can you just use private zone? Cant be bothered to get past the pay wall but maybe he mentioned that
The writeup doesn’t mention security at all, but yeah a private zone would probably solve it
It’s not that there aren’t solutions to use db over dns securely, just that there probably arent easy easy or cheap ones
I used a micro EC2 instance to host a really small DB.
I love how the main drawback is essentially Amazon not liking this fuckery so you’d never get more than 10k records.
Docker
Omg I love such creative misuse of services!
Reminds me of some project where dns was used to exfiltrate data from a corporate network
“Rearchitect” bruh it’s *A* database table.
Anyone who actually implements that gets what they deserve