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?

已提问 4 年前284 查看次数
1 回答
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 !!

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则