{"id":23299007,"url":"https://github.com/mcnamee/whois-lambda-layer","last_synced_at":"2026-01-18T23:34:30.865Z","repository":{"id":145185513,"uuid":"200154453","full_name":"mcnamee/whois-lambda-layer","owner":"mcnamee","description":"A simple AWS Lambda layer to add whois (jwhois) support","archived":false,"fork":false,"pushed_at":"2019-08-02T02:58:36.000Z","size":1127,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T20:34:40.219Z","etag":null,"topics":["lambda","lambda-layer","lambda-layers","whois"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcnamee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-02T02:58:19.000Z","updated_at":"2021-01-05T14:37:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"cce64796-31bf-4d28-a119-44b67954ad7a","html_url":"https://github.com/mcnamee/whois-lambda-layer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mcnamee/whois-lambda-layer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnamee%2Fwhois-lambda-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnamee%2Fwhois-lambda-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnamee%2Fwhois-lambda-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnamee%2Fwhois-lambda-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcnamee","download_url":"https://codeload.github.com/mcnamee/whois-lambda-layer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnamee%2Fwhois-lambda-layer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28553542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T23:10:22.888Z","status":"ssl_error","status_checked_at":"2026-01-18T23:07:19.656Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lambda","lambda-layer","lambda-layers","whois"],"created_at":"2024-12-20T08:13:57.858Z","updated_at":"2026-01-18T23:34:30.845Z","avatar_url":"https://github.com/mcnamee.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lambda `whois` Layer\n\nAdds support for the `whois` (`jwhois`) tool to your Lambda function.\n\n## Installation\n\n- Going to your AWS console\n- Navigate to `Lambda \u003e Layers \u003e Create layer`\n- Upload this zip and use the ARN in your Lambda function\n\n---\n\n## TLD Conf\n\nIt may be helpful to bundle a `jwhois.conf` file with your Lambda function, to enable you to each adjust which data provider is used for each TLD. You can [download an example here](https://github.com/jonasob/jwhois/blob/master/example/jwhois.conf).\n\nTo use the conf file: `whois -c backend/conf/jwhois.conf` (note that the path is from the Lambda function root).\n\n---\n\n## Building a new version\n\nPlease see the (AWS guide to create a deployment package](https://aws.amazon.com/premiumsupport/knowledge-center/lambda-linux-binary-package/). The following steps are tailored to `whois`.\n\n1. Launch an Amazon EC2 instance from [the latest Amazon Linux AMI](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html)\n1. Connect to the instance, and then install tools to extract the packages:\n    - `sudo yum install -y jwhois rpmdevtools`\n1. Download and extract the libraries and the dependencies:\n    - `cd /tmp`\n    - `yumdownloader jwhois.x86_64`\n    - `rpmdev-extract *rpm`\n1. Copy the libraries into a directory for the Lambda deployment package:\n    - `sudo mkdir -p /var/task`\n    - `sudo chown ec2-user:ec2-user /var/task`\n    - `cd /var/task`\n    - `/bin/cp /tmp/jwhois-4.0-19.7.amzn1.x86_64/usr/* /var/task -R` _(note: replace `jwhois-4.0-19.7.amzn1.x86_64` with the respective directory name)_\n1. Copy all dependencies into the Lambda deployment package:\n    - `mkdir /var/task/lib`\n    - Get a list of all dependencies - `ldd /usr/bin/jwhois`\n    - Copy each of the listed dependencies into your deployment package lib folder: eg. `sudo /bin/cp /lib64/libidn.so.11 /var/task/lib/libidn.so.11`\n1. Create a deployment package ZIP:\n    - `cd /var/task`\n    - `zip -r9 /tmp/jwhois-layer.zip *`\n1. Download a copy of `jwhois-layer.zip` (eg. via SFTP) and upload as a new layer in your Lambda console\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcnamee%2Fwhois-lambda-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcnamee%2Fwhois-lambda-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcnamee%2Fwhois-lambda-layer/lists"}