{"id":18565686,"url":"https://github.com/quiltdata/lambda","last_synced_at":"2026-01-24T11:01:25.499Z","repository":{"id":32955201,"uuid":"147438585","full_name":"quiltdata/lambda","owner":"quiltdata","description":"Build Lambda deployment packages faster with Docker","archived":false,"fork":false,"pushed_at":"2024-01-25T09:54:48.000Z","size":25,"stargazers_count":23,"open_issues_count":3,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T14:31:08.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quiltdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-05T00:52:26.000Z","updated_at":"2024-12-19T22:11:41.000Z","dependencies_parsed_at":"2022-09-05T22:40:47.989Z","dependency_job_id":null,"html_url":"https://github.com/quiltdata/lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/quiltdata/lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quiltdata%2Flambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quiltdata%2Flambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quiltdata%2Flambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quiltdata%2Flambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quiltdata","download_url":"https://codeload.github.com/quiltdata/lambda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quiltdata%2Flambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28725502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: 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":[],"created_at":"2024-11-06T22:19:53.476Z","updated_at":"2026-01-24T11:01:25.482Z","avatar_url":"https://github.com/quiltdata.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build AWS Lambda deployment packages with Docker\n\n## Update\nAmazon now provides images for Lambda runtimes on Docker Hub.\nSee [amazon/aws-sam-cli-emulation-image-python](https://hub.docker.com/r/amazon/aws-sam-cli-emulation-image-python3.7).\nIt is important to use this specific set of images to avoid missing binaries,\nwhich can occur with similar Python 3.x containers from amazon/.\n\n## Blog post (includes tips on reducing package size)\n\n[An easier way to build AWS Lambda deployment packages — with Docker instead of EC2](https://blog.quiltdata.com/an-easier-way-to-build-lambda-deployment-packages-with-docker-instead-of-ec2-9050cd486ba8)\n\n## Why?\n\n* Logging in to EC2 and \n[creating a deployment package by hand](https://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html) \nis clumsy\n* Instead, script package creation around the [`amazonlinux` image](https://hub.docker.com/_/amazonlinux/)\n(blessed as an _official repository_ and\nlinked from [this AWS user guide](https://docs.aws.amazon.com/AmazonECR/latest/userguide/amazon_linux_container_image.html))\n\n## [Tags](https://hub.docker.com/r/quiltdata/lambda/tags)\n* `build` - introduced to build wheels per [#2](https://github.com/quiltdata/lambda/pull/2).\nIn theory this should not affect how the environment functions,\nbut in practice use image id `823205fae3ed`\nif you want to be as close to the official lambda environment as possible.\nOn 9/1/21 the `build` tag has been updated to support the Python3.8 runtime (only).\n\n## Example: Python 3.8 deployment package\n\n```sh\ndocker pull quiltdata/lambda\n\ndocker run --rm -v $(pwd)/create_table:/io -t \\\n\t-e GIT_REPO quiltdata/lambda \\\n\tbash /io/package.sh\n```\n\n* Mount `/io` as a docker volume\n\t* `/io` should contain `package.sh` and your lambda code \\\n\t* `/io` is where the deployment package, lambda.zip, is written \\\n* Pass environment variables with `-e`\n* `--rm` so that, for example, secure envs aren't written to disk\n\n\n## Customize\nModify `package.sh` to suit your own purposes.\n\n## Build container\n\n```sh\ndocker build -t quiltdata/lambda .\n```\n\n## Clone private GitHub repo in container\nUse a [personal access token](https://github.com/settings/tokens):\n\n```sh\ngit clone https://${TOKEN}@github.com/USER/REPO\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquiltdata%2Flambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquiltdata%2Flambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquiltdata%2Flambda/lists"}