Aurora MySQL
Setup and Cleanup Tutorial:
As a associate system administrator I worked on Redhat Linux servers, including user management, permissions, services, and performance monitoring Automated routine administrative tasks using Bash scripting and cron jobs, reducing manual effort by ~30% I am aws certified sysops administrator and Google Certified Cloud Engineer. Determined to transition my career into cloud architect /Cloud Support role
This project provides a step-by-step guide to create an Amazon Aurora MySQL database, connect to it from a local MySQL client, create a test table, and then delete the database. It also covers key concepts about Amazon Aurora.
Prerequisites
An AWS account with appropriate permissions to create RDS resources.
A MySQL client installed on your computer (e.g., MySQL Workbench, Sequel Ace, or the
mysqlcommand-line client).Basic familiarity with the AWS Management Console.
⚠️ Important: This tutorial uses resources that incur costs. Aurora is not included in the AWS Free Tier. An
db.r5.largeinstance costs approximately $0.29 per hour. Remember to delete the database after completing the steps to avoid ongoing charges.
Step-by-Step Instructions
Step 1: Create a Security Group
Open the AWS Management Console and navigate to VPC → Security Groups.
Click Create security group.
Provide a name and description, e.g.,
aurora-mysql-sg.Ensure the VPC is your default VPC (selected by default).
Under Inbound rules, add a rule:
Type: MySQL/Aurora (port 3306)
Source:
0.0.0.0/0(allows traffic from the public internet – only for this demo)
Click Create security group.
https://images/step1-create-sg.png
Step 2: Launch an Aurora MySQL Database
Go to RDS in the AWS Console.
Click Create database.
Choose Standard Create.
Under Engine options:
Engine type: Amazon Aurora
Edition: Amazon Aurora MySQL-Compatible Edition
Version: (select the latest available)
Templates: select Dev/Test.
Settings:
DB cluster identifier:
aurora-demo-clusterMaster username:
admin(or your choice)Master password: Enter your own password (and confirm).
Instance configuration:
- DB instance class: Burstable classes (includes t classes) → db.r5.large (or select from Memory Optimized classes).
Storage: Leave default auto-scaling settings.
Connectivity:
Virtual Private Cloud (VPC): Choose your default VPC.
Public access: Yes (enable public accessibility).
VPC security group: Select Choose existing and pick the security group you created (
aurora-mysql-sg).Availability Zone: No preference.
Additional configuration (optional):
Initial database name:
testdb(or any name you like).Leave other settings as default.
Click Create database.
The database will take several minutes to become available. Wait until the status shows Available.
https://images/step2-create-db.png
Step 3: Obtain the Endpoint
In the RDS console, click on your new cluster (the cluster name, not the instance).
In the Connectivity & security tab, locate the Writer endpoint. It looks like
aurora-demo-cluster.cluster-xxxxx.region.rds.amazonaws.com.Copy this endpoint – you will use it to connect.
https://images/step3-endpoint.png
Step 4: Connect from Your MySQL Client
Use your preferred MySQL client to connect to the database.
Example using MySQL Workbench:
Open MySQL Workbench and click the + icon to create a new connection.
Enter:
Connection Name:
Aurora DemoHostname: Paste the writer endpoint.
Port:
3306Username:
admin(or the master username you set)Password: Click Store in Keychain and enter the password.
Click Test Connection to verify.
If successful, click OK to save and then open the connection.
https://images/step4-workbench-connect.png
Step 5: Create a Test Table
Once connected, run the following SQL commands to create a simple table and insert a record:
sql
CREATE TABLE test (
id INT PRIMARY KEY,
name VARCHAR(50)
);
INSERT INTO test (id, name) VALUES (1, 'Hello from Aurora');
SELECT * FROM test;
You should see the inserted row.
https://images/step5-test-table.png
Step 6: Delete the Database
To avoid ongoing charges, delete the database cluster:
In the RDS console, select your cluster (
aurora-demo-cluster).From the Actions menu, choose Delete.
Uncheck Create final snapshot? (or keep if you need a backup).
Confirm by typing
delete meand click Delete.
https://images/step6-delete.png
The deletion process will take a few minutes.