Tutorial: Creating a user pool - Amazon Cognito

Tutorial: Creating a user pool

With a user pool, your users can sign in to your web or mobile app through Amazon Cognito.

To create a user pool
  1. Go to the Amazon Cognito console. If prompted, enter your AWS credentials.

  2. Choose User Pools.

  3. In the top-right corner of the page, choose Create a user pool to start the user pool creation wizard.

  4. In Configure sign-in experience, choose the federated providers that you will use with this user pool. For more information, see Adding User Pool Sign-in Through a Third Party.

  5. In Configure security requirements, choose your password policy, multi-factor authentication (MFA) requirements, and user account recovery options. For more information, see Security in Amazon Cognito.

  6. In Configure sign-up experience, determine how new users will verify their identities when signing up, and which attributes should be required or optional during the user sign-up flow. For more information, see Managing users in user pools.

    Important

    If you activate user sign-up in your user pool, anyone on the internet can sign up for an account and sign into your apps. Don't enable self-registration in your user pool unless you want to open your app to public sign-up. To change this setting, update Self-service sign-up in the Sign-up experience tab of the user pool console, or update the value of AllowAdminCreateUserOnly in a CreateUserPool or UpdateUserPool API request.

    For information about security features that you can set up in your user pools, see Using Amazon Cognito user pools security features.

  7. In Configure message delivery, configure integration with Amazon Simple Email Service and Amazon Simple Notification Service to send email and SMS messages to your users for sign-up, account confirmation, MFA, and account recovery. For more information, see Email Settings for Amazon Cognito User Pools and SMS message settings for Amazon Cognito user pools.

  8. In Integrate your app, name your user pool, configure the hosted UI, and create an app client. For more information, see Add an App to Enable the Hosted Web UI

  9. Review your choices in the Review and create screen and modify any selections you wish to. When you are satisfied with your user pool configuration, select Create user pool to proceed.

For more information on user pools, see Amazon Cognito user pools.

See also User pool authentication flow and Using tokens with user pools.