Automating EBS snapshots with Lambda

The hands-on lab is part of these learning paths

Solutions Architect – Professional Certification Preparation for AWS
course-steps 47 certification 6 lab-steps 19 quiz-steps 4 description 2
SysOps Administrator – Associate Certification Preparation for AWS
course-steps 36 certification 5 lab-steps 30 quiz-steps 4 description 5
Certified Developer – Associate Certification Preparation for AWS
course-steps 29 certification 5 lab-steps 22 description 2
Getting Started with Serverless Computing on AWS
course-steps 8 certification 1 lab-steps 9
more_horiz See 1 more

Lab Steps

keyboard_tab
lock
Logging in to the Amazon Web Services Console
lock
Creating a Lambda Function That Takes EBS Snapshots
lock
Testing the Lambda function
lock
Automating Snapshot Creation
lock
Validate AWS Lab

Ready for the real environment experience?

DifficultyIntermediate
Duration1h
Students1009
Ratings
4.5/5
star star star star star-half

Description

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

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

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

About the Author

Students13889
Labs11
Courses6

Eric Magalhães has a strong background as a Systems Engineer for both Windows and Linux systems and, currently, work as a DevOps Consultant for Embratel. Lazy by nature, he is passionate about automation and anything that can make his job painless, thus his interest in topics like coding, configuration management, containers, CI/CD and cloud computing went from a hobby to an obsession. Currently, he holds multiple AWS certifications and, as a DevOps Consultant, helps clients to understand and implement the DevOps culture in their environments, besides that, he play a key role in the company developing pieces of automation using tools such as Ansible, Chef, Packer, Jenkins and Docker.