jorgebastida / gordon

λ Gordon is a tool to create, wire and deploy AWS Lambdas using CloudFormation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bundle all functions within an app in the same zip file

sdementen opened this issue · comments

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 :

  1. a zip file is created per function and not per application.
  2. all the zip files are the same (same content, same hash)
  3. 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.