Automating EBS Snapshot Creation with CloudWatch Events and SNS

1 hour
  • 3 Learning Objectives

About this Hands-on Lab

In this AWS hands-on lab, we will be creating a CloudWatch Events rule for the purpose of automating the creation of EBS snapshots (and notifying system admins).

Creating and storing EBS snapshots are essentials for any backup/disaster recovery plan. Automating the creation process allows for reliable backup planning. And by utilizing SNS in this process, we can inform an administrator when each snapshot creation job has begun.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create One (1) SNS Topic with One (1) SNS Subscription

We will create a new SNS topic and SNS email subscription that we will use with our CloudWatch Events rule.

  1. Navigate to the SNS section of the AWS console.
  2. Click Create Topic.
  3. Click Create Subscription.
  4. Configure an email subscription sending a message to your personal email.
Create One (1) CloudWatch Events Rule

Create the CloudWatch Events rule that will once-daily snapshot the specified EBS volume and initiates an email via SNS.

  1. Navigate to EC2 > Elastic Block Store > Volumes, and copy a volume-id to your clipboard.
  2. Navigate to CloudWatch > Events > Rules.
  3. Click Create rule at the top of the console.
  4. Select Schedule, and set it to 1, days for once per day.
  5. Add a target of EC2 CreateSnapshot API call, and paste in the volume-id from the clipboard.
  6. Select Create a new role for this specific resource with the predefined name.
  7. Add a target of SNS topic, and select our newly created SNS topic.
  8. Click Configure details.
  9. Configure the rule with a name, and save the rule.
Verify That One (1) EBS Snapshot Has Been Created

Confirm that your new CloudWatch Events rule is working as expected by checking that a new EBS snapshot was created.

  1. Confirm in your email for the message from SNS.
  2. Check in EC2 > Elastic Block Store > Snapshots that a new snapshot has been created.

Additional Resources

Please log in to the AWS environment by using the cloud_user credentials provided.

Once inside the AWS account, make sure you are using us-east-1 (N. Virginia) as the selected region.

Note: Please delete your email in the SNS section before closing the lab.

What are Hands-on Labs

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?