Notice: Trying to get property 'post_excerpt' of non-object in /home/n3svtp4r09fz/technet.vn/wp-content/themes/darknews/single.php on line 43
Lab Details
- This lab walks you through the steps to create RDS Backup Database Snapshots.
- You will practice using RDS databases and creating these point-in-time snapshots.
- Duration: 2 hours
- AWS Region: US East (N. Virginia).
Lab Tasks
- Log into the AWS Management Console.
- Create an RDS Database.
- Create a table.
- Create a Database Backup.
- Create Database Snapshots.
- Restore the Database.
Architecture Diagram
Steps
Creating a RDS Database
- Navigate to Services at the top and choose RDS under the Database section.
- Make sure you are in the N.Virginia region.
- Click on
in the Create database section.
-
Click on Switch to your original interface at the top of your screen.
- Let’s configure the database.
-
Select Engine:
- Select the checkbox in the bottom of the page to see only the settings available under the free tier.
- Choose MySql and click on Next.
- Select the checkbox in the bottom of the page to see only the settings available under the free tier.
-
Specify DB Details:
-
Instance specifications
- License model : general-public-license
- DB engine version : Leave it as the default version.
- DB instance class : db.t2.micro — 1 vCPU, 1 GiB RAM
- Multi-AZ deployment : default No.
- Storage type : General Purpose (SSD)
- Allocated storage : 20 (default)
- Enable storage autoscaling : Uncheck
- License model : general-public-license
-
Settings
- DB instance identifier : whizdbinstance
-
Master username : whizdbuser
- Note: This is the username you used to log into your database.
- Note: This is the username you used to log into your database.
- Master password and Confirm password: whizlabdatabase
-
Type the password again in the Confirm Password box.
- Note: This is the password used to log onto your database. Please make note of them.
- Note: This is the password used to log onto your database. Please make note of them.
- Choose Next.
- DB instance identifier : whizdbinstance
-
-
Configure advanced settings:
-
Network & Security
- Virtual Private Cloud (VPC) : default VPC
- Subnet group : default
- Public accessibility : Choose Yes
- Availability zone : default No Preference
- VPC security groups : Choose Create new VPC security group
- Virtual Private Cloud (VPC) : default VPC
-
Database Options
- Database name : whizdb
Note: Keep a note of this Database name.
- Database name : whizdb
- Database port : default 3306
- IAM DB authentication : default Disable
- Option group : default
- DB parameter group : default
-
-
Encryption
- Encryption: Disabled by default.
- Encryption: Disabled by default.
-
Backup
- Backup retention period : 0
- Backup window : disabled by default
- Copy tags To snapshots : check
- Backup retention period : 0
-
Monitoring
- Enhanced monitoring : Choose Disable enhanced monitoring
- Log Exports
- Not needed for the purpose of this lab.
- Enhanced monitoring : Choose Disable enhanced monitoring
-
Maintenance
- Auto minor version upgrade : Choose Disable auto minor version upgrade
- Maintenance window : Choose No Preference
- Auto minor version upgrade : Choose Disable auto minor version upgrade
-
Deletion Protection
- Deletion protection : Uncheck
- Once all the configurations are done properly, click on
.
- Deletion protection : Uncheck
- Click on the created database. Under Connectivity and Security, click the VPC Security groups.
- Choose the Inbound Rules and click on Edit Inbound Rules.
- Remove the source of IP address and select Anywhere (0.0.0.0/0) and click on Save rules.
- Navigate to
.
- On the RDS console, the details for the new DB instance appear. The DB instance has a status of creating until the DB instance is ready to use. When the state changes to Available, you can connect to the DB instance. It can take up to 20 minutes before the new instance status becomes Available.
Connecting to RDS Database
- Navigate to MySQL Workbench and click on
.
- Enter the Connection Name : whizlabdb and copy / paste the Host Name. It will be under Connectivity and Security inside your Database.
- Enter the username: whizdbuser (Master Username) and enter the password: whizlabdatabase and store the password in a vault. Use the same password as above.
- Click on Test Connection and click on Ok.
- Enter the database and type show databases; now you will see the table created above whizdb.
Creating a Snapshot
- Now take a snapshot by clicking on Snapshots in the left side panel and then on Take Snapshot.
- Choose the DB Instance you created (i.e whizdbinstance) to take a snapshot.
- Enter the snapshot name : whizsnap and click on Take Snapshot.
- Once the snapshot is created successfully, your screen will look similar to the screenshot below.
- You can check the snapshot details by clicking on the snapshot and viewing the details of your DB Instance.
Creating a Backup
- Enter into the snapshot created above and click on “Action” then choose Restore Snapshot.
- Choose DB Engine : MySQL Community Edition
- License model : general-public-license
- DB instance class : db.t2.micro — 1 vCPU, 1 GiB RAM
- Multi-AZ deployment : default No.
- Storage type : General Purpose (SSD).
- Enter DB Instance Identifier : whizsnaprestore.
-
Network & Security
- Virtual Private Cloud (VPC) : default VPC
- Subnet group : default
- Public accessibility : Choose Yes
- Availability zone : default No Preference
- VPC security groups : Choose Create Existing VPC security group and select “Security group created by the above database”.
- Virtual Private Cloud (VPC) : default VPC
-
Database Options
- Database port : default 3306
- DB parameter group : default
- Option group : default
- IAM DB authentication : default Disable
- Database port : default 3306
- Check copy tags of snapshots under “Backup” and leave the rest as default. Click on Restore DB Instance.
Note : It will take up to 20 minutes to create the Restore DB Instance.
- The restored instance will be created in a different AZ . Now you have successfully completed the lab.
Connecting to a Backup Database
- Navigate to MySQL Workbench and click on
.
- Enter the Connection Name : whizlabrestore db and copy / paste the Host Name. It will be under Connectivity and Security inside your Database.
- Enter the the username: whizdbuser (Master Username) and enter the password: whizlabdatabase and store the password in a vault. The password will be the same as above.
- Click on Test Connection and click on Ok.
- Enter the database then type show databases; now you can see the restored database table whizdb.
Completion and Conclusion
- You have successfully created the RDS Database.
- You have successfully created a snapshots for the Database.
- You have successfully restored a database from a snapshots.
- You have successfully completed the Lab.