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
I will share 3 simple methods to automate snapshot creation:
1. Using Cloudwatch Event rules:-
This is the
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 * * ? *
Abovecron 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 .
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Ankit Arora
Ankit is a Redhat Certified Engineer and Cloud Engineer.