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.
For user signups with self approval, we need a user pool with email verification. I have created a user pool from the CLI with email verification, as discussed within the There's more section of the Creating Amazon Cognito user pools recipe, with the ID us-east-1_cRtc8peWU. Replace it with your ID within the recipe.
We need an administrator user and should configure a profile in the AWS CLI for this user. I have created a user and a CLI profile with the name awssecadmin. Replace it with your CLI profile name within the recipe.