Skip to content

Chalice generates package that is too large #567

@markcampanelli

Description

@markcampanelli

I have a non-chalice lambda function that imports numpy and scipy. I am able to zip up my custom lambda function package to be under 30 MB, and thus I can deploy this to AWS lambda without exceeding the 50 MB limit. However, when I try to use chalice and include both numpy (1.13.3) and scipy (0.19.1) in the requirements.txt, it tells me that the package size is 62.2 MB and that I cannot deploy the package because it is too large.

I might be able to hack around this using the vendor directory and copying over a small subset of manylinux1_x86_64-compiled scipy files that I actually need, but the simple solution using requirements.txt would be much easier to maintain and execute.

Anyone have any thoughts on chalice's 62.2 MB vs. my <30 MB package size?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions