我正在开发一个lambda函数,它使用python 2.7中创建的ResumeParser库。但是,当我部署此功能包括对AWS它的图书馆扔我下面的错误:AWS Lambda错误:解压缩大小必须小于262144000字节
Unzipped size must be smaller than 262144000 bytes
我正在开发一个lambda函数,它使用python 2.7中创建的ResumeParser库。但是,当我部署此功能包括对AWS它的图书馆扔我下面的错误:AWS Lambda错误:解压缩大小必须小于262144000字节
Unzipped size must be smaller than 262144000 bytes
这是一个hard limit不能改变:
AWS Lambda Limit Errors
Functions that exceed any of the limits listed in the previous limits tables will fail with an exceeded limits exception. These limits are fixed and cannot be changed at this time. For example, if you receive the exception CodeStorageExceededException or an error message similar to "Code storage limit exceeded" from AWS Lambda, you need to reduce the size of your code storage.
你需要减少包的大小。如果你有大的二进制文件,将它们放在s3中并在引导程序中下载。同样,对于依赖关系,您可以从s3位置输入pip install
或easy_install
,这将比从pip仓库中提取更快。
谢谢,在我的情况下,我不认为我们有大的二进制文件。正在安装的pip包是添加到整个zip大小的内容。 如果我尝试通过点(s3)安装。当我打包项目时,是否还会下载? –
如果它不在包中,那么它不会被AWS拒绝,使用pip安装是可以的。 – Raf