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

Pattern match against instance not snapshot #41

Closed rts-rob closed 5 years ago

rts-rob commented 5 years ago

Issue #, if available: #40

Description of changes:

Updates re.search as appropriate to pattern match against DBInstanceIdentifier instead of DBSnapshotIdentifier to avoid orphaned snapshots as described in #40.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.