In the Amazon RDS interface, select Databases in the sidebar and then click Create database
In the Create database interface:
Templates select Dev/Test, Deployment options select Multi-AZ DB instance (to create the main instance in the current AZ, and a clone instance in the remaining AZ defined in the db subnet group to prevent failover) → This deployment method will be best practice as it meets the criteria of High availability and Data redundancy
In the Settings section:
database-1
admin
12345678
In the Connectivity section:
In the Additional configuration section, fill in the db name as demodb
(master name: admin, pass: 12345678)
Scroll down to the bottom and select Create database:
Complete creating the database instance
To be able to test the connection to the endpoint of the newly created db from the public network, we need to reconfigure some things as follows (after testing, remember to return everything to the initial state)
In the MySQL Workbench software, create a new connection:
db-ws-01
3306
admin
12345678
If the connection is successful, the following message will appear:
Access file application.properties and reconfigure datasource url, username and password as shown below
Run app and check in the connection just created in MySQL, we see that the tables have been auto-generated thanks to the code first mechanism (just for testing because in this workshop we will use database first)