{"id":18660354,"url":"https://github.com/frederick888/wkhtmltopdf-lambda","last_synced_at":"2026-04-25T23:32:20.748Z","repository":{"id":75489831,"uuid":"314572988","full_name":"Frederick888/wkhtmltopdf-lambda","owner":"Frederick888","description":"Simple wkhtmltopdf wrapper in AWS Lambda","archived":false,"fork":false,"pushed_at":"2020-11-20T18:10:38.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T05:52:46.345Z","etag":null,"topics":["aws","aws-lambda","wkhtmltopdf"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Frederick888.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-20T14:10:23.000Z","updated_at":"2020-11-23T06:43:07.000Z","dependencies_parsed_at":"2023-06-06T16:00:39.709Z","dependency_job_id":null,"html_url":"https://github.com/Frederick888/wkhtmltopdf-lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederick888%2Fwkhtmltopdf-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederick888%2Fwkhtmltopdf-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederick888%2Fwkhtmltopdf-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederick888%2Fwkhtmltopdf-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frederick888","download_url":"https://codeload.github.com/Frederick888/wkhtmltopdf-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239478736,"owners_count":19645591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aws","aws-lambda","wkhtmltopdf"],"created_at":"2024-11-07T07:43:24.753Z","updated_at":"2025-11-06T02:30:35.089Z","avatar_url":"https://github.com/Frederick888.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What\n\n`wkhtmltopdf-lambda` is a simple wrapper which runs [`wkhtmltopdf`](https://wkhtmltopdf.org/) as an AWS Lambda function.\n\n# How\n\n## Dependencies\n\n1. [`rust`](https://www.rust-lang.org/), [`rustup`](https://rustup.rs/)\n0. (Suggested) [musl libc](https://musl.libc.org/)\n0. (Optional) [`just`](https://github.com/casey/just), [aws-cli](https://github.com/aws/aws-cli), [`jq`](https://github.com/stedolan/jq) and a few other common CLI tools\n\n## Build \u0026 Deploy\n\n1. `rustup target add x86_64-unknown-linux-musl`\n0. Configure aws-cli credentials\n0. Create an S3 bucket, e.g. `s3://wkhtmltopdf`\n0. Create a role with CloudWatch and S3 permissions, e.g.\n    ```json\n    {\n        \"Version\": \"2012-10-17\",\n        \"Statement\": [\n            {\n                \"Effect\": \"Allow\",\n                \"Action\": \"logs:CreateLogGroup\",\n                \"Resource\": \"arn:aws:logs:us-east-1:000000000000:*\"\n            },\n            {\n                \"Effect\": \"Allow\",\n                \"Action\": [\n                    \"logs:CreateLogStream\",\n                    \"logs:PutLogEvents\"\n                ],\n                \"Resource\": [\n                    \"arn:aws:logs:us-east-1:000000000000:log-group:/aws/lambda/wkhtmltopdf-rust:*\"\n                ]\n            },\n            {\n                \"Effect\": \"Allow\",\n                \"Action\": [\n                    \"s3:GetObject\"\n                ],\n                \"Resource\": \"arn:aws:s3:::wkhtmltopdf/*\"\n            },\n            {\n                \"Effect\": \"Allow\",\n                \"Action\": [\n                    \"s3:PutObject\"\n                ],\n                \"Resource\": \"arn:aws:s3:::wkhtmltopdf/*\"\n            }\n        ]\n    }\n    ```\n0. `just create-layer`\n0. `env LAMBDA_ROLE=\"arn:aws:iam::000000000000:role/wkhtmltopdf\" just create-function` (or use `.env` file)\n\nAlternatively, instead of creating a layer, `just create-function true` can be used to bundle both the wrapper and `wkhtmltopdf` itself together.\n\n## Test\n\n`just test-function`\n\n## Packaging\n\n`just pack` (wrapper only) or `just pack true` (bundled `wkhtmltopdf`)\n\n## [Serverless](https://www.serverless.com/)\n\nSee:\n\nhttps://github.com/softprops/serverless-rust\n\nhttps://github.com/vvilhonen/cargo-aws-lambda\n\n## Targeting Glibc\n\nSee: https://github.com/softprops/lambda-rust\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrederick888%2Fwkhtmltopdf-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrederick888%2Fwkhtmltopdf-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrederick888%2Fwkhtmltopdf-lambda/lists"}