Day 44: Relational Database Service in AWS

Day 44: Relational Database Service in AWS

day44 of 90daysofdevops

ยท

2 min read

Table of contents

Amazon Relational Database Service (Amazon RDS) is a collection of managed services that makes it simple to set up, operate, and scale databases in the cloud

๐Ÿš€ Task-01

  • Create a Free tier RDS instance of MySQL

    • Go to the AWS Management Console and navigate to the Amazon RDS service.

    • Click on "Create database" and select "MySQL" as the engine.

    • Choose the "Free tier" template or select the desired instance type and configuration.

    • Configure the database settings, such as DB instance identifier, master username, and password.

    • Configure additional settings like storage, VPC, security group, etc., as per your requirements.

    • Launch the RDS instance and wait for it to be created and in the "available" state.

  • Create an EC2 instance

  • Create an IAM role with RDS access

    • Go to the AWS Management Console and navigate to the IAM service.

      Review the role details and click on "Create role".

  • Assign the role to EC2 so that your EC2 Instance can connect with RDS

  • Once the RDS instance is up and running, get the credentials and connect your EC2 instance using a MySQL client.

      mysql -h <RDS hostname> -u <master username> -p
    

Hint:

You should install mysql client on EC2, and connect the Host and Port of RDS with this client.

sudo apt update
sudo apt install mysql-server
sudo service mysql start
sudo service mysql status

Post the screenshots once your EC2 instance can connect a MySQL server, that will be a small win for you.

Watch this video for reference.

Happy Learning

Ritul Gupta

ย