Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Restoring an Amazon RDS Instance Using Snapshots

A critical part of database management is being able to recover your data after corruption or accidental deletion has occurred. In this hands-on lab, we'll use the point-in-time restore capability of RDS automated snapshots to restore a database and bring a site back up. **NOTE**: This lab may take up to 15 minutes to fully start due to the number of resources that need to be provisioned.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 1h 30m
Published
Clock icon Jun 06, 2019

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create an RDS Snapshot

    Create a manual snapshot of the existing RDS database in this environment.

    1. In the RDS console, choose the running instance.
    2. Take a snapshot with the name wordpress-.
  2. Challenge

    Log in to the Bastion Host and Delete Database Data

    1. Log in to the lab instance via SSH using the credentials for the lab.
    2. Install the MySQL command line.
    3. Connect to the MySQL instance using the RDS endpoint with the user wpuser and the password Password1.
    4. Switch to the WordPress database.
    5. Delete the wp_posts table.
  3. Challenge

    Restore an RDS Database from a Snapshot

    1. In the RDS console, navigate to snapshots.
    2. Restore the database wordpress-database using the snapshot you created and name the recovered database instance *wordpress-recovery" and use availability zone us-east-1b.
    3. Launch the database instance.
  4. Challenge

    Rename Database Instances

    1. In the RDS console, modify the wordpress-database instance, and change the DB instance identifier from "wordpress-database" to "wordpress-corrupt".
    2. Click Continue.
    3. Select Apply Immediately.
    4. Click Modify DB Instance.
    5. Modify the "wordpress-recovery" database instance to "wordpress-database".
    6. Visit the website and observe that the site has been restored.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans