2017-07-27 73 views

回答

3

这是一个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 installeasy_install,这将比从pip仓库中提取更快。

+0

谢谢,在我的情况下,我不认为我们有大的二进制文件。正在安装的pip包是添加到整个zip大小的内容。 如果我尝试通过点(s3)安装。当我打包项目时,是否还会下载? –

+0

如果它不在包中,那么它不会被AWS拒绝,使用pip安装是可以的。 – Raf

相关问题