How to get an Identity Pool's ID in AWS Cognito

avatar

Borislav Hadzhiev

Last updated: Sep 24, 2021

banner

Photo from Unsplash

Get a Cognito Identity Pool's ID #

In order to get your Identity Pool's ID in AWS Cognito, you have to:

  1. Open the AWS Cognito console and click on Manage Identity Pools
  2. Select your Identity pool from the list
  3. Click on the Edit identity pool button at the top right corner

edit identity pool button

  1. The Identity Pool ID is displayed under the Identity pool's name

get identity pool id

Alternatively, you can get your Identity Pool's ID using the AWS CLI, by running the list-identity-pools command.

shell
aws cognito-identity list-identity-pools --max-results 20

list identity pools

The list-identity-pools command lists all the identity pools in your account and outputs their names and ids.

If you know the name of your identity pool, you can just copy the value of the corresponding IdentityPoolId property.

Further Reading #

I wrote a book in which I share everything I know about how to become a better, more efficient programmer.
book cover
You can use the search field on my Home Page to filter through all of my articles.