This script is created for making snapshots of EC2 volumes. It handles creating and deleting old snapshots which passed its retention time.
- Python3
- AWS CLI installed (https://aws.amazon.com/cli/)
- Install AWS CLI and configure it using
aws configure
command - Install needed dependencies:
pip3 install -r requirements.txt
- Set variables inside script to fit your needs
- Run script manually or add it to cron
Remember that you'll need AWS credentials to be configured on each user willing to run script (because of its location inside user's home directory).
or alternatively set them inside /etc/boto.cfg to grant access globally