Commit 91d7697f authored by nimrod's avatar nimrod
Browse files

Add checks for myip.shore.co.il.

parent 6a2da7bb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ locals {
    "autoconfig",
    "mta-sta",
    "www",
    "myip",
  ]
  function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"]
}

src/myip.py

0 → 100644
+14 −0
Original line number Diff line number Diff line
from utils import check_urls


def handler(event, context):  # pylint: disable=unused-argument
    """Lambda event handler."""
    checks = [
        {"url": "http://myip.shore.co.il/"},
        {"url": "https://myip.shore.co.il/"},
    ]
    check_urls(checks)


if __name__ == "__main__":
    handler("event", "context")