In this recipe, we will create two groups and assign users to those groups.
Working with Cognito groups
Getting ready
Create a user pool with a default configuration on the basis of the Creating Amazon Cognito user pools recipe. Steps to create a user pool from the CLI are provided with code files. I have created a user pool with default configurations and its ID is us-east-1_Q1cydt6I0. Replace it with your ID within the recipe.
We require an administrator user and should configure a profile in the AWS CLI for this user. I have created a user and profile with the name awssecadmin. Replace it with your CLI profile name within the recipe.
We require three users: testuser1, testuser2, and testuser3. We can create the users...