diff --git a/functions.tf b/functions.tf index 9565620ce1e40cd38875a3bfdef7f9f84bbacd24..de3a37e67d5f81e4f8bc4b02a2127228a252463d 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 0000000000000000000000000000000000000000..f65d48e6c28524a32272f18cb79a3ecbdf3f1106 --- /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")