11. Lab - RDS
# Relational Database Service (RDS)
In this hands-on exercise, you will create a MySQL database instance using RDS.
Prerequisites:
- AWS Account
Topics Covered:
By the end of this lab, you will be able to:
- Launch a MySQL database
Steps:
Launch MySQL Database
- On the AWS Management Console page, type
rdsin theFind Servicesbox and then selectRDS. - On the left-hand side, click
Databases. - Click
Create database. - Under engines option, select
MySQLand click theNextbutton - Under
Instance specifications, leave the defaults. - Under the
Settingssection:- Enter a name for the instance under
DB instance identifier
- Enter a name for the instance under
Note: This will not be the database name.
- Enter a
Master username - Enter a
Master passwordand confirm the password. - Click
Next - For
Virtual Private Cloud (VPC), selectCreate new VPC. - Ensure
Create new DB Subnet Groupis selected. - Leave the defaults for
Subnet group,Public accessibility,Availability zone, andVPC security groups. - Under
Database options, enter aDatabase nameand leave the rest as defaults. - Under
Deletion protection, uncheckEnable deletion protection.
Important: In a real production scenario, you would leave this option checked. - Click Create database`.
- On the AWS Management Console page, type
View Instance Details
- Once your database is created, open it by clicking on
View DB Instance details. - Make sure the
DB instance statusshowsavailable. - Scroll through and observe how the instance is configured.
- Once your database is created, open it by clicking on
Delete Database Instance
Clean up the resources to avoid recurring charges.- From the RDS Dashboard homepage, select
Databasesfrom the left-hand navigation pane. - Select your newly created database by clicking on the name radio button next to the name.
- From the
Actionsmenu, selectDelete. - In the confirmation popup:
- Uncheck
Create final snapshot - Select
I acknowledge that upon instance deletion, automated backups, including system snapshots and point-in-time recovery, will no longer be available. - Enter the requested confirmation for deletion.
- Click the
Deletebutton
- Uncheck
- From the RDS Dashboard homepage, select
Create a MySQL database instance using RDS
Task Feedback:
Congratulations. You did Great!