2017-07-27 165 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

相關問題