def verify_domain(host_name, session):
    """Verify domain name exists and is public"""
    c = session.client("route53")
    host_name = ".".join(host_name.split(".")[-2:]) + "."
    r = c.list_hosted_zones_by_name(DNSName=host_name)
    for i in r["HostedZones"]:
        if i["Name"] == host_name and i["Config"]["PrivateZone"] == False:
            zone_id = i["Id"].split("/")[-1]
            return zone_id
    print(f"Error: Public zone for domain {host_name[:-1]} not found")
    exit(1)