awslabs / rds-snapshot-tool

The Snapshot Tool for Amazon RDS automates the task of creating manual snapshots, copying them into a different account and a different region, and deleting them after a specified number of days
Apache License 2.0
341 stars 146 forks source link

Filter by tags #28

Closed jeffmacdonald closed 5 years ago

jeffmacdonald commented 5 years ago

Hi. I am about to begin work on a PR that will allow this tool to filter which RDS instances to backup via tags on said instance. This will make it easier for us to configure instances to be backed up within our CloudFormation and at the same time will make it easier to ignore read replicas.

Currently our RDS instance's names are given by CloudFormation so using regular expressions just doesn't work for us.

Before I begin: has anyone else already started work on this ? and/or - do you think there are any gotchas to my plan? All discussion is welcome. Tks.

mrcoronel commented 5 years ago

I believe that functionality is already there... could you check the documentation for TaggedInstance?

jeffmacdonald commented 5 years ago

I actually just stumbled across that! Thanks :)