スキップしてコンテンツを表示

Migrating workloads from one AWS account to another

0

I want a seamless Cognito User Pool migration between AWS accounts, where users don’t have to reset passwords or re-register. Since Cognito does not natively support direct user export/import with passwords due to security design. Is there any best way to do with minimum downtime ?

1回答
0

See whether this can help:

  1. Create a New User Pool in the Destination Account • Enable User Migration Lambda Trigger. • Ensure the new pool supports the same attributes and authentication flow (e.g., USER_PASSWORD_AUTH).
  2. Set Up a Lambda Function

o Authenticate the user against the old user pool. o Return user attributes to the new pool. o Create the user in the new pool without requiring password reset.

  1. Configure IAM Roles for Cross-Account Access • In the old account, create a role that allows: o cognito-idp:AdminInitiateAuth o cognito-idp:AdminGetUser o cognito-idp:ListUsers • Trust the Lambda execution role from the new account.
  2. Attach the Lambda to the New User Pool • Go to User Pool > Triggers > Migration. • Select your Lambda function.
エキスパート

回答済み 10ヶ月前

AWS
エキスパート

レビュー済み 10ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ