Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/enhanced offsiting #2

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

DaveOsment
Copy link

@DaveOsment DaveOsment commented Jan 27, 2017

Hi Josh,

I was looking to use your Lambda functions in an AWS Project I'm currently engaged with; we have a requirement for off-siting snapshots along with a number of other items of functionality mentioned in your 'IDEAS.md' so thought you might be interested in the added functionality for your own project.

I've also created a YAML CFN to create all three Functions in Lambda, along with the required IAM Role, and CloudWatch Events to trigger each Function on a Cron-based schedule, which can be configured in the CFN parameters.

In summary, I have:

  • Obtained the currently executing Region from default AWS Environment variables
  • Obtained the Retention Period from Instance Tags, but with a default of 7 days
  • Relocated all other variables to Instance Tags
  • Enabled the exclusion of individual Volumes attached to an Instance, by Tag
  • Added a new function 'ebs-snapshot-offsiter' which copies any snapshots with the 'DestinationRegion' tag set to the aforementioned target Region, along with all Tags from the source snapshot, allowing your existing 'ebs-snapshot-manager' to remove them after the specified retention period
  • Added a CFN template to create the above in AWS

I appreciate this is a fairly significant change to your own work, so would appreciate any feedback you may have.

Many Thanks,

Dave

Dave Osment added 6 commits January 27, 2017 12:04
…tinationRegion' Tag; if the Tag is present, it must be a valid AWS Region which will trigger replication of the SnapShot to the specified Region, and then delete the SnapShot from the Source Region in any subsequent re-run after the copy has completed successfully. All Tags on the Source SnapShot will be applied to the copy.
2. Excluded all source SnapShots not in yet in a 'completed' state
…o exclude individual Volumes attached to an Instance from SnapShots and added support for off-site tag. Configured description to use Volume Name where specified.
…th required IAM Role, and CloudWatch Event Cron Trigger to fire each Function on a schedule defined within CFN paramaters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant