在Cognito中查找标识池标识的位置

Ale*_* Po 15 amazon-web-services amazon-cognito aws-cognito

Cognito Console中的标识池在哪里.如文档中所述,它具有以下格式:

IdentityPoolId

标识为REGION:GUID的标识池标识.

但我只看到Pool IdPool ARN在控制台中.哪种格式不同.

Rus*_*ail 8

如果您已导航到仪表板,还可以从 URL 中提取身份池 ID:

在此处输入图片说明


Ale*_* Po 7

您可以找到Identity pool ID是否Manage Federated Identities在页面https://eu-west-1.console.aws.amazon.com/cognito/home?region=eu-west-1上选择并创建联合身份。

替代文字


elb*_*bik 7

我可以设法IdentityPooId通过aws cli:

aws cognito-identity list-identity-pools --max-results 10
Run Code Online (Sandbox Code Playgroud)

命令返回为您的帐户注册的所有Cognito身份池。

{
    "IdentityPools": [
        {
            "IdentityPoolId": "XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab",
            "IdentityPoolName": "<some custom name>"
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)