【问题标题】:Adding Cognito user pool groups using amplify auth update to an existing Cognito resource?使用 amplify auth update 将 Cognito 用户池组添加到现有 Cognito 资源?
【发布时间】:2020-08-21 06:43:53
【问题描述】:

我已经在我的 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

【问题讨论】:

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


    【解决方案1】:

    是的,您可以放心使用

    amplify update auth
    

    添加或更新组。

    完成后确保运行:

    amplify auth push
    

    或

    amplify push
    

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

    你可以使用

    amplify init
    amplify pull auth
    

    首先拉取所有资源。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-02
      • 2019-04-18
      • 2019-11-29
      • 2020-04-22
      • 2018-09-08
      • 1970-01-01
      • 2018-12-11
      • 2021-09-03
      相关资源
      最近更新 更多