在我的角度项目的根文件夹中运行amplify init命令后,当我不想创建新用户时,收到以下错误消息:
init failed
Error: Profile configuration is missing for: default
at Object.getProfiledAwsConfig (C:\Users\User\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\amplify-provider-awscloudformation\lib\system-config-manager.js:82:11)
at getAwsConfig (C:\Users\User\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\amplify-provider-awscloudformation\lib\initializer.js:67:45)
at Object.run (C:\Users\User\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\amplify-provider-awscloudformation\lib\initializer.js:44:29)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
我已经有一个具有App ClientID和App Client Secret的帐户。我输入accessKeyId,secretAccessKey和区域,然后出现错误消息。
答案 0 :(得分:1)
更新 〜/ .aws / credentials(Linux和Mac)或%USERPROFILE%.aws \ credentials(Windows) 和 〜/ .aws / config(Linux和Mac)或%USERPROFILE%.aws \ config(Windows) 并具有以下链接中所述的默认选项
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html