2017-07-27 13 views
5

私は1つのラムダ関数を開発しています。これはPython 2.7で作成したResumeParserライブラリを使用しています。しかし、私は、それはエラー以下の私を投げAWS上のライブラリを含めて、この機能を展開するとき:AWSラムダエラー:解凍サイズは262144000バイトより小さくする必要があります

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.

あなたはあなたのパッケージのサイズを小さくする必要があります。

Unzipped size must be smaller than 262144000 bytes

答えて

3

これを変更することはできませんhard limitです。大規模なバイナリをs3に置き、ブートストラップでダウンロードします。同様に、依存関係の場合は、s3の場所からpip installまたはeasy_installを指定すると、pip reposから引き出すよりも高速になります。

+0

私のケースでは、大きなバイナリはないと思います。インストールされているピップパッケージは、合計のジップサイズに追加されているものです。 もし私がpip(s3)を使ってインストールしようとしたら。プロジェクトをパッケージ化してもまだダウンロードされませんか? –

+0

パッケージに含まれていない場合はAWSで拒否されず、pipを使用してインストールすることはOKです。 – Raf

関連する問題