Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
main entrypoint for invoking from a zip file:
python3 file-containing-cloudwatch-event.json
import json
import os
import sys
from cloudwatch_dashboards.cloudwatch_dashboards import update_dashboards #<----
print("sys.argv", sys.argv)
if len(sys.argv) < 2:
print("Usage: event.json")
event = json.loads(open(sys.argv[1]).read())
update_dashboards(event) #<----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment