AWS Lambda error on Cognito User Pool trigger

后端 未结 3 524
时光说笑
时光说笑 2021-01-05 09:35

I\'m trying to insert a record into DynamoDB invoking \"Pre sign-up\" trigger of Cognito User Pool.

Lambda function is pretty simple for testing purposes but there i

3条回答
  •  猫巷女王i
    2021-01-05 09:48

    You are doing this in node.js and the error indicates you are not returning the service expected event source.

    You should call context.done() when your lambda function finishes execution. Also, in any of the trigger sources which Cognito User Pool service generates, you can only edit the "response" part of the the source. For example, "autoConfirmUser" flag in PreSignUp trigger source.

    Look at the examples in our developer guide for more details on this.

提交回复
热议问题