def get_latest_snapshot_identifier(snapshot_list, engine):
    """Return snapshot to use based off latest available snapshot from a list of snapshots"""
    latest_date = None
    latest_snapshot = ''
    for snapshot in snapshot_list:
        if not snapshot['Status'] == 'available':
            continue
        if latest_date is None or snapshot['SnapshotCreateTime'] > latest_date:
            latest_date = snapshot['SnapshotCreateTime']
            if 'aurora' in engine:
                latest_snapshot = snapshot['DBClusterSnapshotIdentifier']
            else:
                latest_snapshot = snapshot['DBSnapshotIdentifier']
    return latest_snapshot