LoginSignup
3
3

More than 5 years have passed since last update.

Serverlessのハマりポイントまとめ

Last updated at Posted at 2016-02-02

Serverlessフレームワークの話です。
雑多に。

FunctionとEndpointは一緒にデプロイしよう

問題点

s-functionファイルのendpointsの設定を変更して、sls dash deployコマンドでいくらendpointをデプロイしてもlambdaにアクセスが届かない!

理由

s-functionendpointsには、Lambdaの設定とAPI Gatewayの設定がごっちゃになっている。(たぶん)一度Lambdaをデプロイしないと、Lambda側のAPI endpointsの設定が反映されなくてアクセスできなくなる。ちゃんと調べてないからたぶんだけど。

Scheduled Eventはコンソールから

2016/2/2現在、まだサポートされてないらしいです。コンソールからは普通に設定出来るので、デプロイ後に手動設定を!

ファイルは50MBまで

Serverlessは、Component=>Module=>Functionと3階層にわかれている。Functionをデプロイしようとしても、zip化されるのはComponent単位。で、これが50MBという制限がある。kuromoji.jsという形態素解析器を突っ込もうとしたら死んだ!

3
3
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
3
3