Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
'''
main entrypoint for invoking from a zip file:
python3 cloudwatch_dashboards.zip 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: cloudwatch_dashboards.py event.json")
sys.exit(1)
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