How to Launch Amazon Aurora Database with Read Replicas

How to Launch Amazon Aurora Database with Read Replicas

Amazon Aurora is also a Database like MySQL but it comes with only 2 versions

  1. Aurora (MySQL Compatible Edition)

  2. Aurora (PostgreSQL Compatible Edition)

In a normal RDS Database, we will get only 5 Read Replicas but with Aurora, we will get 15 Read Replicas. Aurora is a global database and it is only available in RDS.

Writer- I was able to read and write the database

Reader - I was only to read I don't have any permission to create or write

MySQL WorkBench supports majorly MySQL type database but if you have another database engine such as MariaDB, Oracle and others so it shows some error while connecting.

Creating Aurora (MySQL Compatible)

We are going with MySQL edition because MySQL is already installed in our Instance.

Select Standard create

In Aurora, FREE Tier is not available so I am going with Production

In Settings, I gave the name to DB Cluster Identifier

Then I created a password for the Database

In Instance configuration, I selected the Burstable class because I don't much configuration requirements

I am going with the first option because I want Read Replica

This should be by default

I selected the Public Access

I unselected the Monitoring as per my needs

In Additional Configuration, I gave the name to my Initial database name

Rest things are default

The database got created, in which one is the Writer Instance and the second is the Reader Instance

We will able to create more Readers in the same region and across the region

Connecting with MySQL WorkBench

Click here to get connect with Database

In RDS, copy the endpoint of the Writer Instance

Connect with Writer Endpoint

In MySQLWorkBench, paste the Endpoint and enter the admin as the username

Then It will ask you to enter the password which you created in the RDS

After entering the password you will be connected

Once you connected this dashboard will be showing

I wrote a query, type the query pressed enter and select the text then click on the symbol

Result

I created a new database by the name of mydb

Now I used the same command to check available databases

Connect with Reader Endpoint

Copy the Endpoint of the Reader

In WorkBench

Setup the connection

It will ask you for the password

Connected now

It is showing now

Now If I try to create a database then it shows me an error, with Reader we cannot create the database.

Creating another Reader Replica

Select the Database and there is an option to create Reader

Follow the basic steps

Make it Publically Accessible

Rest Default and clicked Create and now It got created

Delete the Aurora Database

People get confused in deleting to delete this first we need to the Reader and as well as the Writer then after we will able to delete it.

We need to delete one by one

And if we see this type of message we need to disable the deletion protections first because it auto-selected comes in the Aurora

To Disable this select the Database and click to modify

Go down then unselect the deletion protection

After performing the above actions then we need to select the

It will take a few minutes to get completely modified and I deleted all the Reader and Writer so this will delete automatically.

Final result

The last thing Aurora creates automatically snapshot which is a back up