Top
Sp.4ML > AWS  > Toolbox: Set a permanent Cognito user password from a browser

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.

Then:

  • Login to AWS Console.
  • Type Shell in a search window and choose CloudShell.
  • 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. Type Cognito 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.
Szymon
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x