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 144 forks source link

Conditionally create log group of DeleteOldSnapshotsDestRDS lambda function #43

Closed falmotlag closed 5 years ago

falmotlag commented 5 years ago

Added condition to cwloggroupDeleteOldSnapshotsDestRDS to check if DeleteOld parameter is set to TRUE. Lambda function referenced by cwloggroupDeleteOldSnapshotsDestRDS would not exist if DeleteOld is set to FALSE cause CloudFormation stack to break during creation.

Issue #, if available:

Description of changes: Added condition to cwloggroupDeleteOldSnapshotsDestRDS to check if DeleteOld parameter is set to TRUE. Lambda function referenced by cwloggroupDeleteOldSnapshotsDestRDS would not exist if DeleteOld is set to FALSE cause CloudFormation stack to break during creation.

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