You are on page 1of 17

5.

4 CREATING AWS RDS DATABASE


Log back on to your AWS console

© Amazon Web Services

Find RDS in the Service Catalog and click on it


© Amazon Web Services
Click on Create Database

© Amazon Web Services


Choose MySQL

© Amazon Web Services


Select MySQL 8.x

© Amazon Web Services


Select Dev/Test

© Amazon Web Services


DB Settings Details

DB Identifier : rs-mortgage-aws
Master username : admin (Remember this is only a test DB )
Master Password : admin1973

© Amazon Web Services


Keep the Default for Instance Size

© Amazon Web Services


Keep the defaults for Storage
© Amazon Web Services
Keep the defaults for Availability and Durability

Make it publicly accessible Database but keep all other defaults such as VPC
etc.
© Amazon Web Services

Other Details. Do not worry about the monthly cost as we will delete the DB
when we are done with it.
© Amazon Web Services
Click on Create Database Button
© Amazon Web Services

Wait till the status says available

© Amazon Web Services


Let’s get the connection details
Click on the DB Identifier Link to go to the DB details page

© Amazon Web Services

Endpoint
rs-mortgage-aws.civxewyb4pfe.us-west-2.rds.amazonaws.com
port: 3306
Start your local MySQL Workbench
Click on the + Icon to open a New Connection Dialog. Enter the endpoint
URL on the Host text box.
Username is admin
Password is admin1973

© Amazon Web Services

Click on Store In Vault to provide the password


On normal occasions you will see this if you click on Test Connection

Click OK to close the dialog.


You may notice MySQL Workbench may not be able to connect to the AWS
MySQL. Let’s configure the DB Security Groups

© Amazon Web Services


Click on the first Security Group to visit
© Amazon Web Services
Click on Inbound Tab

© Amazon Web Services


Click on Edit Rules

© Amazon Web Services

Click on Add Rule, enter 3306 as port and make source Anywhere
© Amazon Web Services
Click on Save Rules
5.5 ACCESSING AWS RDS DATABASE
INSTANCE FROM LOCAL

© Amazon Web Services


Let’s create the database and tables in AWS RDS MySQL
© Amazon Web Services
Click on Apply
Click on the Schemas Tab on Workbench, right click on the new Schema and
Select Set As Default Schema
Find the ddl.sql file in your IDE under the datascripts folder, copy the Create
Table statement and paste in your Workbench

Similarly find the data.sql file in the same folder, and execute the insert
statement in the AWS RDS table through Workbench

You might also like