Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 470 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 470 Bytes

WkHtmlToPDF Lambda Layer


Installation

Install npm

npm install

Deploy your layer:

sls deploy

Usage

Create you function in serverless:

youFunction:
  handler: handler.youFunction
  events:
    - http:
      path: /my-endpoint
      method: post
      cors: true
  environment:
    FONTCONFIG_PATH: /opt/fonts # You need this env for your lambda
  layers:
    - arn:aws:lambda:us-east-1:xxxxxx:layer:wkhtmltopdf-lambda-layer:1