π Successfully Deployed RDS MySQL Database on AWS! π

Thrilled to share a recent milestone in my AWS journey! π I've successfully deployed a MySQL database using Amazon RDS and established seamless data access from an EC2 instance. π οΈπ»
π What's Been Achieved:
- π Deployed RDS MySQL Database on AWS for efficient and scalable data management.
- π Established a robust connection from an EC2 instance to the RDS database.
- β¨ Implemented seamless data insertion and deletion processes.
π‘ Key Learnings:
AWS has proven once again to be a game-changer in simplifying database management. From the ease of deployment to the seamless connectivity between services, every step was a testament to the power of cloud computing. π©οΈ
- Log in to AWS Console π₯οΈ
- Navigate to the AWS Management Console and log in with your credentials.
Open RDS Dashboard πͺ
- Find the "RDS" service in the AWS Console and click to open the dashboard.
Click "Create Database" π±
- Hit the "Create Database" button to start the setup process.
Select Database Engine π οΈ
- Choose database engine MySQL from the options.
Specify DB Details π
- Fill in essential details like DB instance identifier, master username, and password.
Configure DB Instance βοΈ
- Set up instance specifications, including instance type, storage, and additional configurations.
Configure Advanced Settings π
- Tailor advanced settings such as VPC, security groups, and backup preferences based on your needs.
Add Database Tags (Optional) π·οΈ
- Tag your database for better organization and management.
Review & Launch π
- Double-check your configurations, then hit "Launch Database."
it will take some time to create the database. after creating the database you will see like this.

Meanwhile, you can create a EC2 instance from where we will access the database.
Log in to AWS Console π₯οΈ
- Head to the AWS Management Console and log in using your credentials.
Navigate to EC2 Dashboard π
- Find and open the EC2 service in the AWS Console.
Choose "Launch Instance" π
- Click on the "Launch Instance" button to initiate the instance creation process.
Select an Amazon Machine Image (AMI) πΌοΈ
- Choose an AMI Ubuntu
Choose Instance Type βοΈ
- Opt for the "t2.micro" instance type, which falls under the AWS Free Tier eligibility.
Configure Instance Details π οΈ
- Set parameters like the number of instances, network settings, and other configurations. The default settings work well for a basic setup.
Add Storage π¦
- Specify the amount of storage required for your instance. The Free Tier includes a limited amount of storage, but you can adjust as needed.
Configure Security Group π
- Create a new security group or choose an existing one to define inbound and outbound rules for network traffic.
Review Instance Launch π
- Double-check your configurations and click "Launch" when you're ready to proceed.
Create or Use an Existing Key Pair ποΈ
- Create a new key pair or use an existing one to securely access your EC2 instance.
Launch Instance π
- Click "Launch Instances".

now to establish recheability beetween EC2 and RDS go to RDS and click on the database. under that you will find connected compute resource.

Click on it and add the EC2 instance on here.
after adding the EC2 to the RDS there will a network will work such like VPC.

login to the EC2 in cli and run the command to get into the RDS .
mysql -u admin -h mysql-database.cyesulbcyunz.ap-south-1.rds.amazonaws.com -P 3306 -p
