lambda/delete_old_snapshots_dest_aurora/lambda_function.py [59:71]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                difference = datetime.now() - creation_date
                days_difference = difference.total_seconds() / 3600 / 24
                # if we are past RETENTION_DAYS

                if days_difference > RETENTION_DAYS:

                    # delete it
                    logger.info('Deleting %s. %s days old' %
                                (snapshot, days_difference))

                    try:
                        client.delete_db_cluster_snapshot(
                            DBClusterSnapshotIdentifier=snapshot)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



lambda/delete_old_snapshots_no_x_account_aurora/lambda_function.py [59:71]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                difference = datetime.now() - creation_date
                days_difference = difference.total_seconds() / 3600 / 24
                # if we are past RETENTION_DAYS

                if days_difference > RETENTION_DAYS:

                    # delete it
                    logger.info('Deleting %s. %s days old' %
                                (snapshot, days_difference))

                    try:
                        client.delete_db_cluster_snapshot(
                            DBClusterSnapshotIdentifier=snapshot)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



