def main()

in functions/source/lambda_function.py [0:0]


def main(event, context):
    # This lambda function monitors the state of the vMX instances and updates the SDWAN VPC and TGW route tables accordingly.
    # The function gets instatiated on a periodic Cloudwatch event, the frequency of the periodic check is configurable and taken as an input for the cft templates. 

    try:
        logger.info('Lambda Execution: Executed on event {0}'.format(event))
        update_rt()
    except Exception as e:
        logging.error('Exception: %s' % e, exc_info=True)