def get_events(conn, stackname):
    next = None
    event_list = []
    while 1:
        events = conn.describe_stack_events(stackname, next)
        event_list.append(events)
        if events.next_token is None:
            break
        next = events.next_token
        time.sleep(1)
    return reversed(sum(event_list, []))
Get the events in batches and return in chronological order
dataset/ETHPy150Open cloudtools/troposphere/troposphere/utils.py/get_events