Cognito presignup trigger fires twice or multiple time.

0

Hi, I'm using an AWS Lambda function. Once any request from APP to Cognito to signUp users. Then I have set the Pre sign-up trigger to send OTP to the customer and return the event to Cognito. It happens sometime in the request, not all the time. it will trigger 3 times sometime and most of the time twice As per this link https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html#cognito-user-identity-pools-working-with-aws-lambda-triggers-using-lambda Important Amazon Cognito invokes Lambda functions synchronously. When called, your Lambda function must respond within 5 seconds. If it does not, Amazon Cognito retries the call. After 3 unsuccessful attempts, the function times out. This 5-second timeout value cannot be changed.

沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南