Create a Cognito Test User
This chapter has been archived and is no longer updated. View the current version of the guide.
In this chapter, we are going to create a test user for our Cognito User Pool. We are going to need this user to test the authentication portion of our app later.
Create User
First, we will use AWS CLI to sign up a user with their email and password.
In your terminal, run.
$ aws cognito-idp sign-up \
--region YOUR_COGNITO_REGION \
--client-id YOUR_COGNITO_APP_CLIENT_ID \
--username admin@example.com \
--password Passw0rd!
Now, the user is created in Cognito User Pool. However, before the user can authenticate with the User Pool, the account needs to be verified. Let’s quickly verify the user using an administrator command.
In your terminal, run.
$ aws cognito-idp admin-confirm-sign-up \
--region YOUR_COGNITO_REGION \
--user-pool-id YOUR_COGNITO_USER_POOL_ID \
--username admin@example.com
Now that our User Pool has been configured and ready to use, let’s create our Identity Pool to manage access to our AWS resources.
For help and discussion
Comments on this chapter