Verify Existing RDS Instance: Confirm that the RDS instance devops-rds is already created.
devops-rds
Configure Public Access: Set the RDS instance devops-rds to be publicly accessible.
Check Default Port: Ensure the RDS instance is accessible on the default port 3306.
3306
Navigate to the RDS service and search for instance.
RDS → Databases → devops-rds → Modify
Connectivity → Publicly Accessible
Click Continue.
Continue
Select Apply immediately
Apply immediately
Edit the inbound rules to allow traffic on port 3306 by opening it to 0.0.0.0/0.
0.0.0.0/0
To get username
Now let’s connect with endpoints.
Let’s try to connect the mysql from outside with the username, endpoints and password which we already created on devops-rds.
Boom!! We are able to access the mysql from our localhost too.
#cloud #aws #cloudcomputing #rds #mysql #happlearning
aws rds describe-db-instances --db-instance-identifier devops-rds --query "DBInstances[0].MasterUsername"