Home > Mobile >  How to change to a new AWS Cognito user pool?
How to change to a new AWS Cognito user pool?

Time:10-09

I am new to AWS Amplify and I need to change to a new user pool since the default settings are not sufficient. I see there is a way to create a new user pool and then migrate users from the old pool to the new pool (here), but I would prefer to just change the default pool to the new one.

CodePudding user response:

You can't change standard user pool attributes after a user pool is created. Instead, create a new user pool with the attributes that you want to require for user registration.

You have 2 options to migrate your users to the new User Pool:

  1. You can migrate users when they sign-in using Amazon Cognito for the first time with a user migration Lambda trigger. With this approach, users can continue using their existing passwords and will not have to reset them after the migration to your user pool. Lambda Migration
  2. You can export users and import them to a new user pool with a CSV file, but your users will have to change their password.Import - Export
  • Related