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


aws

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Dedicated AWS Developer

Want to Hire AWS Developer for cloud computing services? At **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")**, we leverage maximum benefits from the AWS platform ensuring prominent Solutions for business requirements....

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!

Serverless CI/CD on the AWS Cloud

To set up a serverless CI/CD pipeline in your AWS environments, there are several key services that you need to use. Find out more here.

AWS Fargate for Amazon Elastic Kubernetes Service | Caylent

Easily run Kubernetes-based applications on AWS by leveraging AWS Fargate and Amazon Elastic Kubernetes Service together. Learn more here.

Serverless Express – Easy APIs On AWS Lambda & AWS HTTP API

Serverless Express enables you to easily host Express.js APIs on AWS Lambda and AWS HTTP API. Here is how to get started and deliver a Serverless Express.js based API with a custom domain, free SSL certificate and much more!