AWS Cognito User Migration - Exception during user migration

AWS Cognito User Migration - Exception during user migration

I have created userpool and trying to migrate user from RDS which invokes lambda function that returns the updated event object.&nbsp;<strong>but its not working for me.</strong>

I have created userpool and trying to migrate user from RDS which invokes lambda function that returns the updated event object. but its not working for me.

I have followed as provided solution by removing below 2 fields, still not working .. :(

"desiredDeliveryMediums": "EMAIL",
 "forceAliasCreation": "false"

Here is the response object that am sending from lambda. still facing same issue - Exception during user migration

Please let me know what am missing here. Thanks in advance

def lambda_handler(event, context):
     print event
     event["response"] = {
             "userAttributes": {
                 "email": event["userName"],
                 "email_verified": "true",
             },
             "finalUserStatus": "CONFIRMED",
             "messageAction": "SUPPRESS",
             "desiredDeliveryMediums": "EMAIL",
             "forceAliasCreation": "false"
         }
     print event

 return event


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

AWS Training Online Course - Best AWS Certification - Intellipaat

Enroll for best AWS training course with AWS Certification online and placement support. Learn Amazon web services AWS course from certified AWS experts. Enroll Now!

Redefine your career with the AWS Course.

APTRON Gurgaon with its start-of-art class rooms and Lab infrastructure at Gurgaon offer the best and most conducive learning environment, with a team of highly skilled trainers having years of industry experience. [AWS Course in...

AWS Tutorial | AWS Full Course - Learn AWS In 11 Hours | AWS Training | Intellipaat

➡ This AWS full course is an end to end aws tutorial where you will learn aws from scratch & master all the advanced concepts quite easily. 🔥Intellipaat AWS ...