Amazon web services @带有';用户池';找到提供程序,但项目未配置Cognito用户池身份验证提供程序

Amazon web services @带有';用户池';找到提供程序,但项目未配置Cognito用户池身份验证提供程序,amazon-web-services,aws-amplify,Amazon Web Services,Aws Amplify,当我尝试执行“放大推送”时,此错误消息会显示在ide控制台中 ×将资源推送到云中时出错 @找到具有“userPools”提供程序的auth指令,但该项目未配置Cognito用户池身份验证提供程序。 有人能帮我解决这个问题吗。您需要运行: amplify update api ? Please select from one of the below mentioned services: GraphQL ? Select from the options below Walkthrough a

当我尝试执行“放大推送”时,此错误消息会显示在ide控制台中

×将资源推送到云中时出错 @找到具有“userPools”提供程序的auth指令,但该项目未配置Cognito用户池身份验证提供程序。

有人能帮我解决这个问题吗。

您需要运行:

amplify update api

? Please select from one of the below mentioned services: GraphQL
? Select from the options below Walkthrough all configurations
? Choose the default authorization type for the API Amazon Cognito User Pool
Use a Cognito user pool configured as a part of this project.
? Do you want to configure advanced settings for the GraphQL API No, I am done.
然后运行:

amplify push