使用放大身份验证更新将Cognito用户池组添加到现有Cognito资源?

时间:2020-08-21 06:43:53

标签: amazon-cognito aws-amplify aws-amplify-cli

我已经在我的Amplify CLI应用程序中使用了Cognito。我可以使用amplify update auth

安全地添加Cognito用户池组吗
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

1 个答案:

答案 0 :(得分:0)

是的,您可以放心使用

amplify update auth

添加或更新组。

完成后请确保运行:

amplify auth push

amplify push

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

你可以使用

amplify init
amplify pull auth

先拉取所有资源。