CustomMessage lambda not getting clientMetata from forgotPassword()

0

We are using Cognito Pools for storing identities and calling them using the AWS SDK for PHP. We are using the mail triggers calling AWS lambda function to customize the mails dynamically.

The solution works well in Mumbai region (Cognito and Lambda both in Mumbai region) but the same code DOES NOT work in Ohio region. The lambda function returns a null value for clientMetadata in Ohio. Can someone please share a resolution?

preguntada hace 4 años285 visualizaciones
1 Respuesta
0

Hi, We were able to resolve the issue in AWS SDK for PHP. The issue is with the version of the SDK. The earlier versions of the SDK did not support clientMetadata to be passed back to the Cognito handler. That in turn results in no data into the Lambda function.

When we upgraded the SDK, everything just started to work like a charm.

Best regards !!

respondido hace 3 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