Where to find Identity Pool Id in Cognito

Alex Po picture Alex Po · Jun 11, 2017 · Viewed 16.3k times · Source

Where is Identity Pool in Cognito Console. As said in docs it has format:

IdentityPoolId

An identity pool ID in the format REGION:GUID.

But I see only Pool Id and Pool ARN in the console. Which has different format.

Answer

elbik picture elbik · Dec 11, 2018

I can manage to get the IdentityPooId by aws cli:

aws cognito-identity list-identity-pools --max-results 10

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>"
        }
    ]
}