Create a relational database using AWS RDS for your personal project
Attention
Amazon RDS is not recommended for your life-time project since it offers only 750 hours runtime per month as part of the Free Tier. Further above this amount may cost you up to $100 a month. ($0.26/hour — Frankfurt — MariaDB — 2024.06.13 rate)
For more info: https://aws.amazon.com/free
Let’s start.
- Easy create
- MariaDB (for the sake of this tutorial)
- Free Tier
- DB instance identifier: usually your project name
- Master username: no need to change “admin”
- Self managed
- Auto generate password: recommended to have a secure and complex password, you can save it in your password manager later
- Leave everything else as is and click Create database
At this point, any attempt to connect to the DB will fail:
Tip: In case you don’t remember, “Master username” can be found in Configuration (tab) >> Availability (section)
… because of 2 reasons:
- “Publicly accessible” should be set to Yes: defines whether or not the DB can be accessible from outside of the “virtual network” (Check out this video if you wanna learn more about VPC)
- VPC security group should be configured by adding inbound rules
Let’s start with the first one:
Now the second step:
Yes, the warning’s got a point.
If your ISP provides you a “static IP” or you are already willing to reset the “Source” before each time you wanna connect, then you can go ahead and select “My IP” for better security. However, since this is a tutorial intended for “personal projects”, I think we can ignore it.
Now, let’s try again: