Set the password for a cognito user via the AWS CLI
06 May 2024AWS Cognito for some reason does not allow to set the password of a user via the web interface. It can be reset, but what if you did not implement the password reset in your web ui? ;-)
A good workaround it to use the CLI and just override the password for a user:
aws cognito-idp admin-set-user-password --user-pool-id "USERPOOLID" --username "USERNAME" --password "NEWPASSWORD" --permanent --profile "YOUR_AWS_CREDENTIAL_PROFILE" --region "AWS_REGION"
There you go.