Hi All, this document deals with how to automate ebs snapshot using cloud watch.
A critical application or server which holds data is always the best practice to take a snapshot as a backup periodically.

Taking backup manually won’t help us to solve this issue, even script running any server calling the Snapshot AMI also won’t help on this, because then we should make sure that the server running the script should be available 24/7 without any issue. In order to solve this kind of circumstances, I would like you to go cloudwatch service where you can automate EBS snapshot periodically.

Before Going to this take note of your EBS volume ID.

Next Go to the Cloud watch dashboard, select event.

Under Event select schedule option to take periodic backup.

Select cron to schedule a job,
Here is the sample job which I have created for mine.

For Targets, choose to Add target and then select EC2 CreateSnapshot API call,
Add your Volume ID

that’s it now you have successfully scheduled EBS snapshot.

Here is the link for more understanding about cron Events

https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html

Happy Learning

© 2018, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points
Categories: AWS

Prabhin Prabharkaran

He is Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!!

Leave a Reply

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.