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

asked 2 years ago205 views
2 Answers
0

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

answered 2 years ago
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

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions