Lambdas to create and delete EBS snapshots.
Copy the index.js
in each of the directories into their respective lambdas.
Creates snapshots of a volume.
Required environment variables:
- SNAPSHOT_TAG -- what you'll be using to filter the snapshots for deletion
- VOLUME_ID -- what volume you want the snapshots to be of
- REGION -- AWS region your volume and snapshots are in
Deletes snapshots older than a certain number of days.
Required environment variables:
- SNAPSHOT_TAG -- which snapshots to fetch to delete
- DAYS_TO_KEEP -- how many days to keep snapshots around for before deleting
- REGION -- AWS region your volume and snapshots are in
Based on this: https://github.com/rmzi/ebs_snapshots