diff --git a/functions.tf b/functions.tf index dd3c36ca52a60a2886cb74e668fc297dbd6c9a3d..7ccabd84908dae3f8d2d973268726cb3b5922f8c 100644 --- a/functions.tf +++ b/functions.tf @@ -16,6 +16,9 @@ locals { "ssh", "smtp", "imap", + "auth", + "elasticsearch", + "kibana", ] function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"] } diff --git a/src/auth.py b/src/auth.py new file mode 100644 index 0000000000000000000000000000000000000000..b9aff69e40d745a47a2a39167a71cedd6b7bf916 --- /dev/null +++ b/src/auth.py @@ -0,0 +1,12 @@ +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") diff --git a/src/elasticsearch.py b/src/elasticsearch.py new file mode 100644 index 0000000000000000000000000000000000000000..eb301709bcd85201c5988bd5accdf7f8a791880d --- /dev/null +++ b/src/elasticsearch.py @@ -0,0 +1,12 @@ +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") diff --git a/src/kibana.py b/src/kibana.py new file mode 100644 index 0000000000000000000000000000000000000000..d41683dbc630964bb0778c179413acdbd0f7cb64 --- /dev/null +++ b/src/kibana.py @@ -0,0 +1,12 @@ +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")