DEV Community

Discussion on: Generate a PDF in AWS Lambda with NodeJS, Webpack, Pug and Puppeteer

Collapse
 
goodwin64 profile image
Max Donchenko

Thanks for the article! Useful!

1

difference in code size was 984,9 kB (TS project) vs. 124,8 MB (JS project) for the same code

Why so?

2

Sorry if I'm wrong but you haven't mentioned how you managed to deploy it to AWS. Did you put everything in a bucket? If yes, how bucket and lambda are synchronized?

Collapse
 
zeka profile image
Zeljko Krsic

Thank you for your comment and sorry that you waited for my response this long, I simply haven't noticed till now.

  1. I am not sure why the difference in bundle is so big. I haven't investigate it as I was short on time.
  2. I used serverless framework to deploy package to AWS. Serverless put it into bucket and update all parts used in project. In this case, beside lambda function, an API Gateway and layers are implemented.