Search code examples
amazon-web-servicesamazon-cognito

Where to find Identity Pool Id in Cognito


Where is Identity Pool in Cognito Console. In the docs mentioned:

IdentityPoolId

An identity pool ID in the format REGION:GUID.

But I see only Pool Id and Pool ARN in the console. Which have different formats.


Solution

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