This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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