bundle all functions within an app in the same zip file
sdementen opened this issue · 0 comments
sdementen commented
Use case: I create an app and within the app define a couple of functions in a code.py with a requirements.txt beside. Hence all functions within my code.py depend on the same requirements, requirements that may be relatively large (e.g. pandas)
Problem: When I build the project, I notice that :
- a zip file is created per function and not per application.
- all the zip files are the same (same content, same hash)
- each identical zip file is uploaded separately on S3, one for each function
If my dependencies are large (e.g. pandas), this is rather heavy (time, usage of S3).
Question: is it possible to avoid this duplication with gordon ? ie create a single zip file per application and make all lambdas within applications use the same S3 bucket.