LoginSignup
0
0

More than 5 years have passed since last update.

Chalice(Python Serverless Microframework for AWS)ではまったメモ

Last updated at Posted at 2018-02-08

LambdaファンクションをVPC内にデプロイ

2018.02時点ではVPC Supportはプルリクが出ているが、マージはされていない模様。
一旦、VPC外にLambdaファンクションをデプロイしてから以下の通りLambdaファンクションの設定を変更する。再デプロイであれば変更した設定は引き継がれているので、その後はそのまま使い続けられる。
1. Lambdaファンクションに設定されているロールに AWSLambdaENIManagementAccess もしくは AWSLambdaVPCAccessExecutionRole のポリシーをアタッチする。
2. VPC、サブネット、セキュリティグループを適切なものに設定する。

例外が表示されない

Chaliceが握りつぶすので app.debug = True を設定する。

PolicyLengthExceededExceptionが出た

ERROR - While deploying your chalice application, received the following error:

 An error occurred (PolicyLengthExceededException) when calling the
 AddPermission operation: The final policy size (20513) is bigger than the
 limit (20480).

Lambda関数を一回消すと出ない。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0