0
0

More than 1 year has passed since last update.

The Lambda Function Returned An Error.の原因

Posted at

背景

Amazon ConnectからLambdaを呼んでDynamoDBに値を保存する事を実現する上で注意する必要のある事を残しておく

起きうる現象

1. Roleの設定ミス

必要に応じて、設定>アクセス制限>実行ロールからロールを作成して付与してあげる必要がある。

2. returnでstatusCode:200を返していない事によるLambdaの失敗

下記エラーが発生する要因の一つとして、

The Lambda Function Returned An Error.

下記のようにreturn分で200を返していない事が挙げられる。
こちらにも記載がある。

return {
  'statusCode': 200
};
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