Skip to content

Instantly share code, notes, and snippets.

Created May 22, 2020 01:33
What would you like to do?
#!/usr/bin/env python3
import json
from cloudwatch_dashboards.helpers.update_dashboards import update_dashboards
def lambda_handler(event, _):
normal lambda entrypoint
messages = []
ret = {'messages': messages}
messages.append("got passed this event: %s" % json.dumps(event))
ret['result'] = update_dashboards(event) #<-------------------
except Exception as exc:
ret['result'] = "Caught exception %s" % str(exc)
return ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment