def get_box_status(boxes, status="running"):
    """
    Take a list of instances and return those that match the 'status' value

    :param boxes: The list of boxes (instances) to search through
    :param status: The status you are searching for
    :return: A list of instances that match the status value passed
    """
    box_list = []
    for box in boxes:
        if box["Instances"][0]["State"]["Name"] == status:
            box_list.append(box)
    return box_list