How to programmatically reset user's password in AWS Cognito using AWS CLI

aws cognito-idp admin-set-user-password \
  --user-pool-id us-west-2_uhYSMyXXX \ # Replace with your user pool ID
  --username john.doe@my-startup.com \
  --password s3cReTpaSsW0rd \
  --region us-east-1 # or any other region
5 lines of code, 225 characters

Similar AWS code snippets using bash

Finally, a good search for AWS Console

Was that in us-east-1? Or us-west-2? No need to remember. Just type the name of the resource and CloudTempo will find it.

Feature