Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

aws cli - "Failed to fetch Amplify Admin credentials init failed" on new project

Running amplify init on a new local Ionic project that does not exist in the Amplify console results in the error "Failed to fetch Amplify Admin credentials init failed"

Amplify CLI Version: 4.41.2

OS: Windows 10

Node Version: v14.15.3

To Reproduce:

npm install -g @aws-amplify/cli@latest
amplify configure (with correct access key and us-east-2)
cd path/to/new/project
amplify init

image

Log output:

2021-01-20T04:01:36.191Z|info : amplify configure core
2021-01-20T04:02:21.700Z|info : amplify-provider-awscloudformation.system-config-manager.setProfile.credetialsFilePathExists(["C:Usersusername.awscredentials"]) 2021-01-20T04:02:21.702Z|info : amplify-provider-awscloudformation.system-config-manager.makeFileOwnerReadWrite(["C:Usersusername.awscredentials"]) 2021-01-20T04:02:21.703Z|info : amplify-provider-awscloudformation.system-config-manager.setProfile.credetialsFilePathExists(["C:Usersusername.awscredentials"]) 2021-01-20T04:02:21.704Z|info : amplify-provider-awscloudformation.system-config-manager.makeFileOwnerReadWrite(["C:Usersusername.awsconfig"]) 2021-01-20T04:02:21.704Z|info : amplify-provider-awscloudformation.system-config-manager.setProfile.writecredetialsFilePath(["C:Usersusername.awscredentials"]) 2021-01-20T04:02:33.583Z|info : amplify version core {"version":true,"yes":false} 2021-01-20T04:02:41.462Z|info : amplify init core
2021-01-20T04:05:23.406Z|info : amplify configure core
2021-01-20T04:06:26.668Z|info : amplify-provider-awscloudformation.system-config-manager.setProfile.credetialsFilePathExists(["C:Usersusername.awscredentials"]) 2021-01-20T04:06:26.669Z|info : amplify-provider-awscloudformation.system-config-manager.makeFileOwnerReadWrite(["C:Usersusername.awscredentials"]) 2021-01-20T04:06:26.670Z|info : amplify-provider-awscloudformation.system-config-manager.setProfile.credetialsFilePathExists(["C:Usersusername.awscredentials"]) 2021-01-20T04:06:26.670Z|info : amplify-provider-awscloudformation.system-config-manager.makeFileOwnerReadWrite(["C:Usersusername.awsconfig"]) 2021-01-20T04:06:26.671Z|info : amplify-provider-awscloudformation.system-config-manager.setProfile.writecredetialsFilePath(["C:Usersusername.awscredentials"]) 2021-01-20T04:06:33.492Z|info : amplify init core
2021-01-20T04:09:34.827Z|info : amplify console core
2021-01-20T04:12:30.902Z|info : amplify help core
2021-01-20T04:12:37.405Z|info : amplify env core
2021-01-20T04:13:09.423Z|info : amplify help core
2021-01-20T04:13:24.380Z|info : amplify delete core
2021-01-20T04:17:36.440Z|info : amplify help core
2021-01-20T04:18:16.917Z|info : amplify configure core
2021-01-20T04:19:31.799Z|info : amplify init core
2021-01-20T04:20:48.286Z|info : amplify version core {"version":true,"yes":false}

question from:https://stackoverflow.com/questions/65838734/failed-to-fetch-amplify-admin-credentials-init-failed-on-new-project

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...