Skip to content

Instantly share code, notes, and snippets.

@timbaileyjones
Created May 22, 2020 01:33
Show Gist options
  • Save timbaileyjones/0f7afcc50afbdbd19d4cdbfb83ac68b6 to your computer and use it in GitHub Desktop.
Save timbaileyjones/0f7afcc50afbdbd19d4cdbfb83ac68b6 to your computer and use it in GitHub Desktop.
#!/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))
try:
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