Loading functions.tf +3 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,9 @@ locals { "ssh", "smtp", "imap", "auth", "elasticsearch", "kibana", ] function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"] } Loading src/auth.py 0 → 100644 +12 −0 Original line number Diff line number Diff line from utils import website_handler URLS = [ {"url": "http://auth.shore.co.il/", "codes": [301]}, {"url": "https://auth.shore.co.il/", "codes": [403]}, ] handler = website_handler(URLS) if __name__ == "__main__": handler("event", "context") src/elasticsearch.py 0 → 100644 +12 −0 Original line number Diff line number Diff line from utils import website_handler URLS = [ {"url": "http://elasticsearch.shore.co.il/", "codes": [301]}, {"url": "https://elasticsearch.shore.co.il/", "codes": [403]}, ] handler = website_handler(URLS) if __name__ == "__main__": handler("event", "context") src/kibana.py 0 → 100644 +12 −0 Original line number Diff line number Diff line from utils import website_handler URLS = [ {"url": "http://kibana.shore.co.il/", "codes": [301]}, {"url": "https://kibana.shore.co.il/", "codes": [302]}, ] handler = website_handler(URLS) if __name__ == "__main__": handler("event", "context") Loading
functions.tf +3 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,9 @@ locals { "ssh", "smtp", "imap", "auth", "elasticsearch", "kibana", ] function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"] } Loading
src/auth.py 0 → 100644 +12 −0 Original line number Diff line number Diff line from utils import website_handler URLS = [ {"url": "http://auth.shore.co.il/", "codes": [301]}, {"url": "https://auth.shore.co.il/", "codes": [403]}, ] handler = website_handler(URLS) if __name__ == "__main__": handler("event", "context")
src/elasticsearch.py 0 → 100644 +12 −0 Original line number Diff line number Diff line from utils import website_handler URLS = [ {"url": "http://elasticsearch.shore.co.il/", "codes": [301]}, {"url": "https://elasticsearch.shore.co.il/", "codes": [403]}, ] handler = website_handler(URLS) if __name__ == "__main__": handler("event", "context")
src/kibana.py 0 → 100644 +12 −0 Original line number Diff line number Diff line from utils import website_handler URLS = [ {"url": "http://kibana.shore.co.il/", "codes": [301]}, {"url": "https://kibana.shore.co.il/", "codes": [302]}, ] handler = website_handler(URLS) if __name__ == "__main__": handler("event", "context")