在哪里找到Cognito的身份池ID [英] Where to find Identity Pool Id in Cognito
本文介绍了在哪里找到Cognito的身份池ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Cognito控制台中的身份池在哪里。如文档中所述,其格式为:
Where is Identity Pool in Cognito Console. As said in docs it has format:
IdentityPoolId
IdentityPoolId
身份池ID格式为REGION:GUID。
An identity pool ID in the format REGION:GUID.
但是我只看到 Pool ID
和在控制台中 Pool ARN
。
But I see only Pool Id
and Pool ARN
in the console. Which has different format.
推荐答案
我可以设法获取 IdentityPooId
通过aws cli:
I can manage to get the IdentityPooId
by aws cli:
aws cognito-identity list-identity-pools --max-results 10
命令返回为您的帐户注册的所有Cognito身份池。
The command returns all of the Cognito identity pools registered for your account.
{
"IdentityPools": [
{
"IdentityPoolId": "XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab",
"IdentityPoolName": "<some custom name>"
}
]
}
这篇关于在哪里找到Cognito的身份池ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文