gpt4 book ai didi

Why creating a native app using AWS amplify the command `amplify init` gives error(为什么使用AWS创建本地应用程序时会出现命令`Amplify init`出错)

转载 作者:bug小助手 更新时间:2023-10-25 15:18:11 31 4
gpt4 key购买 nike



Tried running both from CLI and Amplify studio UI console

尝试从CLI和Amplify studio UI控制台运行


From CLI it gives below error -

从CLI中,它显示以下错误-


[![mloya@Maheshs-MacBook-Pro mahesh-authentication-lambdas % amplify init     

Note: It is recommended to run this command from the root of your
app directory
? Enter a name for the project maheshauthentication
The following configuration will be applied:][1]][1]


Project information
| Name: maheshauthentication
| Environment: dev
| Default editor: Visual Studio Code
| App type: javascript
| Javascript framework: none
| Source Directory Path: src
| Distribution Directory Path: dist
| Build Command: npm run-script build
| Start Command: npm run-script start


? Initialize the project with the above configuration? Yes
Using default provider awscloudformation
? Select the authentication method you want to use: AWS profile

For more information on AWS Profiles, see:
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html

? Please choose the profile you want to use default
🛑 We are unable to process your request. Please reach out to your support representative.

From UI it gived below error -

从它给出的以下用户界面错误-


enter image description here


I have checked about IAM roles and permission, can confirm the roles and permision are all given as required, also the quota limit is not exhausted. Also tried with Admin Role and with new AWS account having no quota exhausted at all.

我已经检查了IAM的角色和权限,可以确认角色和权限都是按要求分配的,而且配额限制也没有用完。我还尝试了使用管理员角色,并使用新的AWS帐户完全没有用完配额。


P.S : I am able to access and work with other services, like S3 ls etc from cli.

附言:我可以从CLI访问和使用其他服务,如S3 ls等。


更多回答

What can you see in the logs folder in the amplify directory? Can you please share?

您可以在Amplify目录的Logs文件夹中看到什么?你能分享一下吗?

优秀答案推荐

As the message suggests, you do not have any AWS profiles set locally. Try running these,

如消息所示,您没有在本地设置任何AWS配置文件。试着查一下这些,



  1. Install aws cli if not already done.

  2. run 'aws configure' and follow the instructions


更多回答

I dont think the message suggest any of this sort "As the message suggests, you do not have any AWS profiles set locally". I am already able to access other services like S3 etc though. And Why is that failing from UI then?

我认为这条消息不会暗示任何这类事情,“正如消息所暗示的那样,您没有在本地设置任何AWS配置文件”。不过,我已经可以访问S3等其他服务了。那么为什么在用户界面上失败了呢?

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com