Automating EBS snapshots with Lambda

Intermediate

563 students completed the lab in ~36m

Total available time: 1h:0m

309 students rated this lab!

Lab Overview

In this Lab, you will automate the process of creating EBS snapshots using Lambda functions and CloudWatch Events.

Learning Objectives

Upon completion of this Lab, you will be able to:

  • Create Lambda functions to take the EBS snapshots
  • Schedule Lambda functions to run automatically every day with CloudWatch Event triggers

Prerequisites

You should be familiar with:

  • Basic AWS Lambda concepts
  • Amazon Elastic Block Storage (EBS) volumes and snapshots
  • Node.js development experience is beneficial, but not required

Lab Environment

Before completing the Lab instructions, the environment will look as follows:

After completing the Lab instructions, the environment should look similar to:

Updates

June 15, 2018 - Complete update (easier to follow instructions, updated screenshots, updating to Node.js 8.10 runtime)

Follow these steps to learn by building helpful cloud resources

Logging in to the Amazon Web Services Console

Your first step to start the Lab experience

Creating a Lambda Function That Takes EBS Snapshots

Create a Lambda function that will take EBS snapshots

Testing the Lambda function

Test the Lambda function that you created in the previous Lab Step

Automating Snapshot Creation

Automate the creation of snapshots by creating another Lambda function and using CloudWatch Event to schedule the function