From ec24d200af3bc5b8ec3bd9f5be294dea9f92f6a3 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 30 Apr 2021 21:14:09 +0300 Subject: [PATCH] Check autoconfig.shore.co.il. --- functions.tf | 1 + src/autoconfig.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/autoconfig.py diff --git a/functions.tf b/functions.tf index 9565620..de3a37e 100644 --- a/functions.tf +++ b/functions.tf @@ -6,6 +6,7 @@ locals { "registry", "nextcloud", "notify", + "autoconfig", ] function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"] } diff --git a/src/autoconfig.py b/src/autoconfig.py new file mode 100644 index 0000000..f65d48e --- /dev/null +++ b/src/autoconfig.py @@ -0,0 +1,13 @@ +from utils import check_urls + + +def handler(event, context): # pylint: disable=unused-argument + """Lambda event handler.""" + checks = [ + {"url": "https://autoconfig.shore.co.il/mail/config-v1.1.xml"}, + ] + check_urls(checks) + + +if __name__ == "__main__": + handler("event", "context") -- GitLab