amplify-cli: New user setup failed - you did NOT enter valid keys
Describe the bug Following the steps to setup a new user on the CLI but getting an error when entering keys:
Enter the access key of the newly created user:
? accessKeyId:
? secretAccessKey:
You did NOT enter valid keys.
New user setup failed.
Error: New user setup failed.
at context.amplify.pressEnterToContinue.run.then.then.then.then.then.then (C:\Users\karlp\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\amplify-provider-awscloudformation\lib\setup-new-user.js:108:13)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:229:7)
Amplify CLI Version
c:\users\karl>amplify -v
4.26.0
Desktop
- OS: Windows
- Node Version. 8.12.0
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (10 by maintainers)
Commits related to this issue
- fix(amplify-provider-awscloudformation): validate config input re #4998 — committed to UnleashedMind/amplify-cli by deleted user 4 years ago
- fix(amplify-provider-awscloudformation): validate config input (#5307) * fix(amplify-provider-awscloudformation): validate config input re #4998 * minor fix Co-authored-by: UnleashedMind <zh... — committed to aws-amplify/amplify-cli by UnleashedMind 4 years ago
Hey @MatthewJiao my pleasure, so glad it helped you 😃
Thanks for the call. So just for anyone who’s interested - amplify uses node and for some reason on my machine (not sure if others too) you can’t ctrl-v into node. However, right-click (to paste) works.
I’ve tested this on two machines: both Windows 10. Both from command prompt. One uses node v8. The other node 12.
@kewp helped me too. Thanks for persisting.