diff --git a/functions.tf b/functions.tf index de3a37e67d5f81e4f8bc4b02a2127228a252463d..01ec3e274a57db68a93d51322c2b73b891a72710 100644 --- a/functions.tf +++ b/functions.tf @@ -7,6 +7,7 @@ locals { "nextcloud", "notify", "autoconfig", + "mta-sta", ] function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"] } diff --git a/src/mta-sts.py b/src/mta-sts.py new file mode 100644 index 0000000000000000000000000000000000000000..240fe014ea77ab196f0df344617658eef7191625 --- /dev/null +++ b/src/mta-sts.py @@ -0,0 +1,14 @@ +# pylint: disable=invalid-name +from utils import check_urls + + +def handler(event, context): # pylint: disable=unused-argument + """Lambda event handler.""" + checks = [ + {"url": "https://mta-sts.shore.co.il/.well-known/mta-sts.txt"}, + ] + check_urls(checks) + + +if __name__ == "__main__": + handler("event", "context")