EBS Snapshot (and purge) is like building the todo app for the Devops world :) Here's my AWS Lambda implementation that snapshots and purges - https://github.com/manojlds/ebs-snapshot-lambda
EBS-SnapShooter – Python script to snapshot EBS volumes
11–17 of 17 posts
Re: EBS-SnapShooter – Python script to snapshot EBS volumes
#12CloudWatch Events can already do this for you. I wish it were exposed through automation; that's still coming, but in the interim it's still a solution that minimizes your own failure surface. Do AWS tasks with AWS's tools whenever you can--it minimizes points of failure that you have to manage. Check it: http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/Ta... I've also seen people use Lambda, which is halfwa…
For this reason, for my backups, I run a cronjob on the EC2 instance and call fsfreeze (https://linux.die.net/man/8/fsfreeze). Is this unnecessary?
Re: EBS-SnapShooter – Python script to snapshot EBS volumes
#13CloudWatch Events can already do this for you. I wish it were exposed through automation; that's still coming, but in the interim it's still a solution that minimizes your own failure surface. Do AWS tasks with AWS's tools whenever you can--it minimizes points of failure that you have to manage. Check it: http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/Ta... I've also seen people use Lambda, which is halfwa…
Don't your solutions give you potentially corrupted snapshots? For this reason, for my backups, I run a cronjob on the EC2 instance and call fsfreeze ( https://linux.die.net/man/8/fsfreeze ). Is this unnecessary?
Re: EBS-SnapShooter – Python script to snapshot EBS volumes
#14Re: EBS-SnapShooter – Python script to snapshot EBS volumes
#15EBS Snapshot (and purge) is like building the todo app for the Devops world :) Here's my AWS Lambda implementation that snapshots and purges - https://github.com/manojlds/ebs-snapshot-lambda
Yes, the next step from Todo App is to do Incremental backups, and delete the old ones beyond certain version.. :)
Re: EBS-SnapShooter – Python script to snapshot EBS volumes
#16Earlier quoted context omitted.
Why not a Lambda function?
The purpose of this repo is to prepare a Kubernetes Periodic Job to make ebs snapshots. It can be done with different manner ;)
(I will admit: am being a little hard on you because I think this is a bad idea. On the scale of bad ideas, it's only a bad idea and not a really bad idea, but it's a bad idea.)
Re: EBS-SnapShooter – Python script to snapshot EBS volumes
#17What should be the advantage of this script, why just not use the AWS Scheduled backups service