CloudFormation template for automated EBS volume backups using AWS Lambda and CloudWatch

This is a CloudFormation template that creates a small stack that uses AWS Lambda and CloudWatch to take daily backups of EBS volumes and deletes the snapshots when their retention period has been reached.

It simply looks for EC2 instances with the tag Backup:True and then creates snapshots of all the EBS volumes attached to the.

The original idea for this setup came from these 2 blog posts, I’ve simply created a CloudFormation YAML template to automate that setup:

You can find the YAML template in my Github CloudFormation templates repository.

comments powered by Disqus