DEV Community

Discussion on: Puppeteer in an AWS Lambda Function Part 2

Collapse
 
vieraleonel profile image
Viera Leonel • Edited

Hi, I've done the same and it's complaining about the size 51mb. Tried with same versions. Is there any trick or workaround?

As an alternative I'am using this layers github.com/shelfio/chrome-aws-lamb...

Collapse
 
gerybbg profile image
Gergana Young

Hi there, I'm not really sure why you are seeing this problem. It maybe related to the compression you are using. I am using the default mac OS zip command and when I run the script above I get a zip file that is 47MB in size.

The alternative also looks like a good option, I see they use Brotli to compress it.

Collapse
 
vieraleonel profile image
Viera Leonel

I'm using same file compression ¯_(ツ)_/¯

Maybe because I'm using case sensitive APFS.

For now I'll stick with shelfio alternative

Great post, It really help me!