Cognito can not create Lambda trigger

0

I would like to add Pre-SignUp Lambda trigger to Cognito. However, if you create a lambda function and try to add it as a trigger in Cognito, you will get an error in either category. The contents of the error are as follows. code: InvalidSmsRoleTrustRelationshipException message: Role does not have a trust relationship allowing Cognito to assume the role It's well explained, but I'm not familiar with AWS, so it's hard to solve it. Where do we need to modify and edit? Enter image description here

Enter image description here

已提問 2 年前檢視次數 210 次
2 個答案
0

I don't know why, but accurate.Normally after completing the trigger settings in the messaging in the console cognito sms saengseongdoe.

已回答 2 年前
0

yes, you can add pre-Signup Lambda trigger in cognito.

When you create a Lambda trigger outside of the Amazon Cognito console, you must add permissions to the Lambda function. When you add permissions, Amazon Cognito can invoke the function on behalf of your user pool. You can add permissions from the Lambda Console.

some useful links :- https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html

已回答 2 年前

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

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

回答問題指南