Skip to content

SCPR/snapshot-lambdas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

snapshot-lambdas

Lambdas to create and delete EBS snapshots.

instructions

Copy the index.js in each of the directories into their respective lambdas.

create-snapshots

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

delete-snapshots

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

credits

Based on this: https://github.com/rmzi/ebs_snapshots

About

Lambdas to create and delete EBS snapshots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published