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

preguntada hace 2 años210 visualizaciones
2 Respuestas
0

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

respondido hace 2 años
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

respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas