Toolbox: Set a permanent Cognito user password from a browser
I’m on vacation and can’t access my working environment with AWS SAM and AWS CLI. What are my options to set the user password? Skim-reading internet discussions doesn’t give any answers, but one option is to perform
aws cognito-idp admin-set-user-password from a browser! All you need to have:
- AWS Account with access to AWS Console,
- Access to the AWS shell.
- Login to AWS Console.
Shellin a search window and choose
CloudShelltype the command below that will affect your Cognito user password.
aws cognito-idp admin-set-user-password --user-pool-id 'user_pool_id' --username 'user_to_change_password' --password 'new_password' --permanent --region 'aws_region'
user_pool_id– can be obtained from the Cognito service. Type
Cognitoin a search field and check your user pools. By default, it starts with your app’s AWS region name followed by random characters,
user_to_change_password– user whose password will be changed,
new_password– your password that will be set,
- Do not use double quotes for variables in your command.