首页 > 解决方案 > 使用 amplify auth update 将 Cognito 用户池组添加到现有 Cognito 资源?

问题描述

我已经在我的 Amplify CLI 应用程序中使用了 Cognito。我可以使用安全地添加 Cognito 用户池组吗amplify update auth

amplify update auth
Please note that certain attributes may not be overwritten if you choose to use defaults settings
.

You have configured resources that might depend on this Cognito resource.  Updating this Cognito 
resource could have unintended side effects.

Using service: Cognito, provided by: awscloudformation
 What do you want to do? (Use arrow keys)
  Apply default configuration with Social Provider (Federation) 
  Walkthrough all the auth configurations 
❯ Create or update Cognito user pool groups 
  Create or update Admin queries API

标签: amazon-cognitoaws-amplifyaws-amplify-cli

解决方案


是的,您可以安全地使用

amplify update auth

添加或更新组。

完成后确保运行:

amplify auth push

或者

amplify push

因此它应用了更改。运行需要几分钟。

您可以使用

amplify init
amplify pull auth

首先拉取所有资源。


推荐阅读