Skip to content

jplandry908/wkhtmltopdf-aws-lambda-layer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wkhtmltopdf as AWS Lambda Layer

wkhtmltopdf with dependencies published as AWS Lambda Layer.

Operating Systems

This layer supports both Amazon Linux and Amazon Linux 2.

Getting Started

Add this layer to Lambda function by providing the layer version ARN.

Version ARNs

Region ARN
ap-east-1 arn:aws:lambda:ap-east-1:347599033421:layer:wkhtmltopdf-0_12_6:1
ap-northeast-1 arn:aws:lambda:ap-northeast-1:347599033421:layer:wkhtmltopdf-0_12_6:1
ap-northeast-2 arn:aws:lambda:ap-northeast-2:347599033421:layer:wkhtmltopdf-0_12_6:1
ap-south-1 arn:aws:lambda:ap-south-1:347599033421:layer:wkhtmltopdf-0_12_6:1
ap-southeast-1 arn:aws:lambda:ap-southeast-1:347599033421:layer:wkhtmltopdf-0_12_6:1
ap-southeast-2 arn:aws:lambda:ap-southeast-2:347599033421:layer:wkhtmltopdf-0_12_6:1
ca-central-1 arn:aws:lambda:ca-central-1:347599033421:layer:wkhtmltopdf-0_12_6:1
eu-central-1 arn:aws:lambda:eu-central-1:347599033421:layer:wkhtmltopdf-0_12_6:1
eu-north-1 arn:aws:lambda:eu-north-1:347599033421:layer:wkhtmltopdf-0_12_6:1
eu-west-1 arn:aws:lambda:eu-west-1:347599033421:layer:wkhtmltopdf-0_12_6:1
eu-west-2 arn:aws:lambda:eu-west-2:347599033421:layer:wkhtmltopdf-0_12_6:1
eu-west-3 arn:aws:lambda:eu-west-3:347599033421:layer:wkhtmltopdf-0_12_6:1
sa-east-1 arn:aws:lambda:sa-east-1:347599033421:layer:wkhtmltopdf-0_12_6:1
us-east-1 arn:aws:lambda:us-east-1:347599033421:layer:wkhtmltopdf-0_12_6:1
us-east-2 arn:aws:lambda:us-east-2:347599033421:layer:wkhtmltopdf-0_12_6:1
us-west-1 arn:aws:lambda:us-west-1:347599033421:layer:wkhtmltopdf-0_12_6:1
us-west-2 arn:aws:lambda:us-west-2:347599033421:layer:wkhtmltopdf-0_12_6:1

See /arns directory for other wkhtmltopdf versions.

Usage

wkhtmltopdf binary will be extracted to the /opt/bin.

wkhtmltopdf can be executed directly as a command line binary, or via a wrapper.

Refer to /tests directory for example usage.

Build, Test, Publish

Refer to the following scripts to build and publish your own wkhtmltopdf layer.

  1. Run ./build.sh to build a new layer zip.
  2. Run ./test.sh to test the layer zip.
  3. Run ./publish.sh to publish the layer zip to regions specified in /config/regions.txt.

Fonts

See fonts-aws-lambda-layer to use fonts on AWS Lambda.

About

AWS Lambda Layer for wkhtmltopdf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 67.0%
  • Java 13.3%
  • Dockerfile 13.0%
  • JavaScript 3.8%
  • Python 2.9%