Because as you know I hate doing complicated maintenance, I've started adding this function to the bottom of my Chalice app.py file:
"""
This function allows me to use the same Lambda for HTTP (Api gateway), CRON (Cloudwatch poll) and
Batch (Kinesis - putting an item in the kinesis stream triggers a call to this function)
"""
def command_router(event, context):
if 'requestContext' in event:
logging.warn("Processing as HTTP request")