Free tier database options other than RDS and DynamoDB

I have a personal site. In it I have my own CMS for my posts, I have a journal app, an RSS reader, etc. I’m currently using Railway with MySql because they have a $5 credit per month so my bill comes out to about $1 a month.

However, I’d really like to keep my data within AWS for security, replicability, and ease of use reasons.

BUT I have problems with RDS and DynamoDB:

RDS: Free tier is very limited, seems very easy to go into non-free tier territory which is super expensive. Cheapest non-free tier is $15/month (too pricey for my use case)

DynamoDB: Proprietary and no-SQL. I’ve used DynamoDB a ton before, but I still like SQL databases for querying.

I would love it if there was a simple SQLite database option. I can’t do that since my app is running inside a Docker container.

I don’t think S3 Table Buckets are really fully developed yet so I want to hold off on those. And using S3 as a DB technically works but querying content is a nightmare.

Do you really need a database? Is it one user? Can you store your data in json files on s3?

What are your specific issues with the free tier? The other option would be running your own MySQL database on ec2, but I suspect it would have the same issue as RDS potentially .

I realize you said you want to keep it all in AWS, but I use Aiven’s super generous free tier. Up to 5GB of storage, no transaction limits that i know of. I have over a year of home environmental data, as well as a year of a bunch of stock data, never had any problems with the service, no sneaky nonsense with the company, it’s just good stuff.

https://aiven.io/free-mysql-database

If this is a personal site why don’t you just self host it and use a VPN to access it when you’re remote? That would make it free. Otherwise you could host your DB on a free tier EC2 instance, or run the database container alongside your app container. Third option is also to use Supabase, which hosts their infra on AWS.

You could persist the SQLite file in S3 and pull it into your Docker container each time it starts up.

AWS is expensive, so well, there is one thing you can do. Spin up a free tier Linux EC2 instance and use Sqlite in it. That way I think it should be low enough.

You could even install MySQL but Sqllite is good enough if you data is small.

I tried SQLite files on S3 and it worked surprisingly well for an application with very few writes.

What about Athena (S3)?

you can run sqlite on NFS (there will be some network latency)

or run it on your EC2 instance/docker, and use litestream to continuously back it up to s3

Just run MySQL on a free tier EC2 instance.. In another account. Then just peer the VPCs for access. This way you don’t squash any free tier usage in your account where you’re getting credits and have another instance. Especially if it’s just a person site. Just maybe also use EBS data lifecycle manager to backup your EC2 instance volume for MySQL is deployed so you have some way to restore it if you need.

I fully migrated from ec2 with mysql to SUPABASE for free!

Free tier is not for running your personal site forever for free. It’s to check out the services to see if you want to use them and pay for them going forward.

Obviously you see value in AWS for “security, replicability, and ease of use”, so you should pay for that value. Or remain where you are…$12/year seems like a great deal.

Athena is suited to specific edge cases for analytics of data, not a general use CRUD backend.

This comment makes no sense. I am in the free tier for Lambda, S3, DynamoDB, etc. If I use DynamoDB I will be in the free tier. A paid RDS database isn’t $12/year, it’s at least $15/month. Also, what’s up with the shilling of a trillion dollar corporation?

Supabase just for the free / cheap Postgres DB also works. Rest can be on AWS.

Better option would be EFS volume, can be mounted to a lambda or container and would be okay for rare concurrent writes as well.

And it’s also pay-as-you-go.

You want to keep your data within AWS and you are rejecting DynamoDB because it’s Proprietary. Isn’t this contradictory? You have already used it so there is no learning curve. I have read somewhere that SQL query is supported (or will be supported) by DynamoDB (I may be wrong) Proprietary no-sql DB seems to be the best choice in this case.

There’s Aurora Serverless v2 and other great free tier options I’ve compared here: https://github.com/hbmartin/comparison-serverless-cloud-sql-databases

Older thread, but if you want to stay inside AWS, Lightsail with MySQL/Postgres is probably the closest cheap SQL option. Otherwise RDS is just not priced well for tiny personal apps.

If leaving AWS is okay, then Railway, Neon, Supabase, or Nearbase will usually be simpler/cheaper.