AWS Cognito Made Simple: Creating Your First User


Overview :-
Imagine you’re throwing a fabulous party and you need a reliable way to know who’s coming, manage the guest list, and ensure everyone has a great time. Amazon Cognito is like the friendly bouncer at the door with the guest list. It helps you manage who gets in (authentication), ensures they are who they say they are (identity verification), and remembers them for next time (user management). Creating a user in Cognito User Pool is essentially adding a guest to your party list. Simple, right?
Step 1: Sign into AWS Management Console
- Login to your AWS Account and change the region to us-east-1. Click on the search bar and search for Cognito service.
Step 2: Create a User
- Select a user pool and click on Create user in the user-pool.
- Set the details such username, email address and password for the user as shown like below.
- After entering those details click on ‘Create user’.
Step 3: Setting the Confirmation Status
- Once the user is being created, u have the set the confirmation status as “Confirmed” from “Force Change Password”.
To achieve that open a command prompt window on your system and export the AWS Profile with ENV in which the Cognito user pool exists.
Next run the below command to set the status as Confirmed.
aws cognito-idp admin-set-user-password --user-pool-id COGNITO_USERPOOL_ID --username COGNITO_USERNAME --password COGNITO_USER_PASSWORD --region us-east-1 --permanent
- After running the command, go to your console and refresh the page to check the confirmation status. As you can see that the status has been set to Confirmed as shown like below.
Conclusion :-
And there you have it — a new user in your Cognito User Pool without the headache. Remember, at its heart, tech is about making life easier and more enjoyable. By understanding how to create a user in Cognito, you’re taking a big step towards managing your app’s users efficiently and securely. It’s like ensuring your party is both happening and safe, with everyone having a blast.
Subscribe to my newsletter
Read articles from Mahira Technology Private Limited directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Mahira Technology Private Limited
Mahira Technology Private Limited
A leading tech consulting firm specializing in innovative solutions. Experts in cloud, DevOps, automation, data analytics & more. Trusted technology partner.