Toolbox: Set a permanent Cognito user password from a browser
June 24, 2023
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.
Then:
- Login to AWS Console.
- Type
Shell
in a search window and chooseCloudShell
.
- In
CloudShell
type 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. TypeCognito
in 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,
Hint:
- Do not use double quotes for variables in your command.
Subscribe
Login
0 Comments
Oldest