In this recipe, we will implement a server-side authentication flow with admin authentication APIs from the AWS CLI with AWS developer credentials.
Implementing an admin authentication flow
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 whose ID is us-east-1_Q1cydt6I0. 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 profile with the name awssecadmin. Replace it with your CLI profile name within the recipe.
...