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

gefragt vor 2 Jahren210 Aufrufe
2 Antworten
0

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

beantwortet vor 2 Jahren
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

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen