Where to find Identity Pool Id in Cognito

You can find Identity pool ID if you select Manage Federated Identities on the page https://eu-west-1.console.aws.amazon.com/cognito/home?region=eu-west-1 and create an Federated Identity.

Alt text


After creating the user pool, If you did not create associated Identity pool, Create a new one (Identity pool) and while creating it, set it as below (or as per your needs)

enter image description here

Once you click create, click Allow on the following screen then you will see the identity pool id like below

enter image description here

If you already have one, The from Cognito main screen, click Manage Identity Pools, click on the pool you want to get its Id then from side menu click "Sample Code" you will see the same screen as in the above image.


If you've navigated to the dashboard, you can also pull the identity pool ID from the URL:

enter image description here


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