Free Tier - EC2 MySQL or RDS MySQL

0

Hi,
I have created the following setup:
a. an EC2 instance such that, I'm getting the "Amazon Linux AMI Test Page" via the Public Host Name of the Instance.
b. have configured Route53 to point a test domain to the instance and it is working.

I need to create a MySQL Database that is accessible from the PHP files in my EC2 instance.

https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=categories%2312monthsfree&awsm.page-all-free-tier=1
As per Free Tier Details page, one RDS db.t2.micro database & one EC2 t2.micro instance is allowed.(additionally, in my EC2 dashboard, I also see a volume of 8GB present)

It is unclear whether, I can create & use database directly in my EC2 instance, while staying within Free tier restrictions.

In order to stay within Free Tier, Should I directly create the Database via SSH in EC2 or should I create a RDS MYSQL DB with Public IP.?

Edited by: rohitvedantwar on Jun 16, 2019 10:47 PM

Edited by: rohitvedantwar on Jun 16, 2019 10:55 PM

Edited by: rohitvedantwar on Jun 16, 2019 10:59 PM

asked 5 years ago308 views
2 Answers
0
Accepted Answer

AWS doesn't care (or even know) what you run on your EC2 instance, so it is perfectly fine to install MySQL on your EC2 t2.micro and have it stay within the free tier. Of course if doing so requires resources beyond the free tier (e.g., more storage) then you'll be charged for those.

BTW, a good place to look for more information about the free tier is https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-free-tier.html

HalTemp
answered 5 years ago
0

Thank-you HalTemp. I'll go ahead and create an EC2 MySQL db.

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions