Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lambda layers for implementing addZipFile and addDirectory #4

Open
acchou opened this issue Mar 5, 2019 · 1 comment
Open

Use lambda layers for implementing addZipFile and addDirectory #4

acchou opened this issue Mar 5, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@acchou
Copy link
Collaborator

acchou commented Mar 5, 2019

Currently CommonOptions.addZipFile and CommonOptions.addDirectory add files into the code package that is uploaded directly. There is a 50MB limit on AWS for the code package. Lambda Layers allows us to increase this limit to 250MB.

We should use Lambda Layers to implement these options. A separate layer can be created for each value (there is a limit of 5 layers for each function), then all can be added to the function. Layers are already used for implementing packageJson so this should be relatively straightforward, as the garbage collector should work as-is if we follow the faast-* naming convention.

@acchou acchou self-assigned this Mar 5, 2019
@acchou acchou added the enhancement New feature or request label Mar 5, 2019
@acchou
Copy link
Collaborator Author

acchou commented Mar 5, 2019

This also needs to align with the layer caching strategy in #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant