I am trying to follow this tutorial to learn about serverless. When i issued following command, I got error
aws cognito-idp sign-up \
--region us-east-2 \
--client-id 6gj*********************bu \
--username admin@example.com \
--password Passw0rd!
An error occurred (NotAuthorizedException) when calling the SignUp operation: Unable to verify secret hash for client 6gj*********************bu
So far i have tried following things but nothing worked
- I have made sure the region i am using in the command is the correct one
- I have made sure that
aws configure
is set to correct region (though it doesn't make sense since i am explicitly putting region in the command) - Created new app in cognito pool. ACtually not only created new app, i created a new AWS account to test it out and still getting same issue
- I have also tried email and password in single-quotes. and in other combination i tried just the password in single-quotes. in both cases, got the same error
P.S: I am running this command from iTerm2
installed on my mac. I have oh-my-zsh
configured on it.