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

posta 2 anni fa210 visualizzazioni
2 Risposte
0

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

con risposta 2 anni fa
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

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande