jweisman / Alma-AWS-Lambda

AWS Lambda functions for Alma
11 stars 5 forks source link

Zip file size & Layers #3

Closed matiboy closed 5 years ago

matiboy commented 5 years ago

Hi @jweisman Thank you for this library. Sorry this is a bit of 2 questions in one:

When I compile using gradle build, the generated zip file is 54Mb which is too much to upload to Lambda. Am I doing something wrong? as long as one copies the zip to S3, you can create the Lambda function 👍

Is it possible to externalize the libraries (e.g. aws sdk, etc) and to put them onto a Lambda layer? Not very knowledgeable with Java, but done that before in Lambda.

Thanks!

Mat

matiboy commented 5 years ago

Given that there is no issue with size after all, I guess the use of "layer" is also probably unnecessary. Closing