html-to-pdf-puppeteer icon indicating copy to clipboard operation
html-to-pdf-puppeteer copied to clipboard

Package Cannot Uploaded in AWS Lambda

Open Imam-N opened this issue 4 years ago • 2 comments

Hi,

I'm using this package for converting Html to Pdf. This package Perfectly Working in my Local System. But I cannot uploaded in AWS Lambda Layer.

It Gives an Error

Unzipped size must be smaller than 262144000 bytes

Imam-N avatar Aug 08 '20 07:08 Imam-N

Fir aws lambda we need to convert it to lambda format. wont work the way its now.

On Sat, Aug 8, 2020 at 12:51 PM Imam Sathik N [email protected] wrote:

Hi,

I'm using this package for converting Html to Pdf. This package Perfectly Working in my Local System. But I cannot uploaded in AWS Lambda Layer.

It Gives an Error

Unzipped size must be smaller than 262144000 bytes

[image: image] https://user-images.githubusercontent.com/43365294/89704885-cce23800-d975-11ea-9ce3-c3dc3e7c343a.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hardeeksharma/html-to-pdf-puppeteer/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCD327EOHM74JQEEAOTQ2DR7T4HFANCNFSM4PYQWTPQ .

hardeeksharma avatar Sep 23 '20 09:09 hardeeksharma

You need to convert the main js file to aws lambda format. You can refer this doc https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html

hardeeksharma avatar Sep 25 '20 19:09 hardeeksharma