Skip to main content

Command Palette

Search for a command to run...

πŸš€ Successfully Deployed RDS MySQL Database on AWS! πŸš€

Published
β€’3 min read
πŸš€ 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. 🌩️

  1. 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.
  1. 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