🌟 Successfully Set Up Amazon RDS and EC2 Integration! 🚀

🌟 Successfully Set Up Amazon RDS and EC2 Integration! 🚀

I recently accomplished a key task in my cloud learning journey by setting up an Amazon RDS instance and securely connecting it with an EC2 instance. Here’s a breakdown of the process I followed:

1️⃣ Created an RDS instance and configured the Security Group by allowing access from the EC2 instance's Security Group ID.

Article content
Article content
Article content

2️⃣ Launched an EC2 instance, updated the server, and installed the MySQL client.

Article content

Update and install MySQL client

sudo apt update
sudo apt install mysql-client -y        
Article content
Article content

3️⃣ Enabled MySQL/Aurora in the Security Group to allow inbound traffic.

Article content

4️⃣ Successfully connected to the MySQL database using the client installed on the EC2 instance.

Connect to the RDS instance

mysql -h <RDS_ENDPOINT> -P 3306 -u <USERNAME> -p        
Article content

5️⃣ Created a database named my_project_db to complete the setup.

Create a new database and verify the database

CREATE DATABASE my_project_db;
SHOW DATABASES;        
Article content


Emilio Garcés

Amazon SEO l Consultor y Gestor Amazon Seller l Mejoro tus Listados en Amazon con Títulos y Keywords Optimizados l Especialista en Amazon l Optimización de Listings y PPC de Amazon FBA/FBM l Gestión de Inventario.

5mo

The integration of RDS and EC2 demonstrates AWS's robust architecture for scalable database management solutions.

To view or add a comment, sign in

More articles by Sanjay H B

Insights from the community

Others also viewed

Explore topics