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?

asked 3 years ago277 views
1 Answer
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 !!

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions