Table of contents
- Task-01
- Create a Free tier RDS instance of MySQL
- Create an EC2 instance
- Create an IAM role with RDS access
- 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.
- Assign your IAM roles to your instance:
- Access your mysql:
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
Create an EC2 instance
Create an IAM role with RDS access
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.
Hint:
You should install mysql client on EC2, and connect the Host and Port of RDS with this client.
Post the screenshots once your EC2 instance can connect a MySQL server, that will be a small win for you.
Create EC2 instance:
Navigate and Create RDS database:database as mysql
Allocate storage per requirement:
Port 3306 is the default port for the classic MySQL protocol ( port )
Create IAM role for RDS:
Provide below permissions:
Assign your IAM roles to your instance:
Install mysql-client
Access your mysql:
Command: mysql -h database-1.citn7gjwh00z.us-east-1.rds.amazonaws.com -P 3306 -u admin -p
Here you go!
Thank you for reading!! Hope you find this helpful.
#day44#90daysofdevops#devopscommunity#
Always open for suggestions..!!