I’m a total noob at AWS but whenever I try to create a MySQL instance on AWS, it has me create a VPC which runs at $30 / month. Does anybody have a cheaper solution?
Your post seems to imply that the VPC costs $30/month, there are no charges for the VPC itself.
There are charges for additional features of a VPC but they are not absolutely needed (NAT gateway)
Cheapest db solution is probably run your app on ec2 with sqlite. Next is probably MySQL running on its own ec2. Using RDS will save you time but cost more (you’re paying AWS to help manage it instead of doing it yourself)
At a high level, that’s how all cloud services work.
Athena or DynamoDB are probably your cheapest options - itt kind of depends what sort of DB you’re looking for tbh
Depending on how long you expect to be using the same thing, you might get away for free. AWS Free Tier includes 750hrs of RDS in a db.t2.micro Instance, 20GB of Storage, and 20GB for Backups each month, for one year. See https://aws.amazon.com/rds/free/
Your post seems to imply that the VPC costs $30/month, there are no charges for the VPC itself.
I had to double take that one myself, then started to question my knowledge of billing
Cheapest DB? AWS Lightsail
30bucks a month for network is the cost of a nat gateway.
You could run your own nat instance instead, but now you are starting to build and maintain infra
If you want an SQL solution, you may want to look into Aurora Serverless. If it doesn’t have to my ACID or SQL, look into DynamoDB.
VPC cost should be nearly nothing until you have a lot of network usage.
How big and what kind of load? I have some microservices that run off CSV files in S3 using a modified Lambda Architecture. Especially with Lambda functions that are just reading and doing in in-memory filter, since you’re billed for 100ms regardless, it’s just dead stupid to read it and filter it purely as code. Updates are done via a dynamodb table that accepts writes, and the stream takes the file and recalculates it. A speed layer can make writes appear more consistent by merging them with the csv file on query.
What’s your use case?
How big is the data? What kind of queries are you doing?
Route53 /Quinn
Do you want AWS? If you are willing to consider other clouds there is:
“oracle cloud always free”
Can’t get cheaper than free!
" Databases
Your choice of Autonomous Transaction Processing or Autonomous Data Warehouse. 2 databases total, each with 1 OCPU and 20 GB storage."
What kind of data? How much data? What do your queries look like? How much load? Do you need HA/FT? This question is kind of like asking how much a house costs.