service: lambdanodepdf

frameworkVersion: '2'

provider:
  name: aws
  runtime: nodejs12.x
  profile: unity
  region: eu-west-1
  stage: dev

package:
  individually: true

functions:
  generate-pdf:
    handler: handler.generate_pdf
    events:
      - httpApi:
          path: /api/pdf
          method: get
  generate-htmltopdf:
    handler: htmltopdf.main
    memorySize: 1024
    events:
      - httpApi:
          path: /api/htmltopdf
          method: post      