Automating AWS EBS Volume Snapshot Creation

Posted By : Ankit Arora | 27-Jun-2017

AWS EBS Auto-Snapshot

I was trying to search a python script for creating a snapshot of AWS EBS volume using AWS Lambda service but didn’t get what I wanted, So I decided to write my own simple script to create Snapshot of AWS EBS volumes.

 

There are many ways to automate creation of snapshot, lots of complex scripts & tools are available online to automate EBS snapshot backups.

I will share 3 simple methods to automate snapshot creation:

 

1. Using Cloudwatch Event rules:-

 

This is the most easy way to automate snapshot creation without any coding required.

Just follow the below steps:

  • Go to AWS Cloudwatch service.
  • On extreme left, go to rules under Events.
  • Click on Rules & then click on Create a Rule.
  • Click on Schedule radio button & set cron expression.
    Example: 30 21 * * ? *
    Above 
    cron will execute daily at 21:30:00 GMT
  • Now on the right side of the screen, click on targets.
  • From List choose: EC2 CreateSnapshot API Call & choose the volume ID.
  • Now click on Configure details & add name & description on the next window.
  • Now under AWS permissions, Choose “AWS_Events_Actions_Execution” & click on “create rule” to create rule.

About Author

Author Image
Ankit Arora

Ankit is a Redhat Certified Engineer and Cloud Engineer.

Request for Proposal

Name is required

Comment is required

Sending message..