Open the Amazon Cognito console and choose Create user pool (the page Set up resources for your application).
chatapp.
Under Configure options:
email to Required attributes for sign-up. Cognito sends the confirmation code to this email.
Cognito names the pool User pool - <random>. Save the pool ID and the app client ID in CloudShell:
POOL_ID=$(aws cognito-idp list-user-pools --max-results 60 --query "UserPools[?Name=='User pool - <random>'].Id" --output text)
CLIENT_ID=$(aws cognito-idp list-user-pool-clients --user-pool-id $POOL_ID --query 'UserPoolClients[0].ClientId' --output text)
echo "export POOL_ID=$POOL_ID CLIENT_ID=$CLIENT_ID" >> ~/chat.env
aws cognito-idp describe-user-pool-client --user-pool-id $POOL_ID --client-id $CLIENT_ID --query 'UserPoolClient.[ClientName,ExplicitAuthFlows]' --output text
The app client chatapp allows ALLOW_USER_SRP_AUTH, the flow that the Cognito JavaScript library uses to sign in.