Loading functions.tf +1 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ locals { "myip", "kodi", "transmission", "vouch", ] function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"] } Loading src/vouch.py 0 → 100644 +14 −0 Original line number Diff line number Diff line from utils import check_urls def handler(event, context): # pylint: disable=unused-argument """Lambda event handler.""" checks = [ {"url": "http://vouch.shore.co.il/", "codes": [301, 302]}, {"url": "https://vouch.shore.co.il/validate", "codes": [401]}, ] check_urls(checks) if __name__ == "__main__": handler("event", "context") Loading
functions.tf +1 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ locals { "myip", "kodi", "transmission", "vouch", ] function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"] } Loading
src/vouch.py 0 → 100644 +14 −0 Original line number Diff line number Diff line from utils import check_urls def handler(event, context): # pylint: disable=unused-argument """Lambda event handler.""" checks = [ {"url": "http://vouch.shore.co.il/", "codes": [301, 302]}, {"url": "https://vouch.shore.co.il/validate", "codes": [401]}, ] check_urls(checks) if __name__ == "__main__": handler("event", "context")