1 min read
How to find your AWS Cognito IdentityPoolId
Quickly locate an AWS Cognito IdentityPoolId in minutes
July 13, 2019
In this post, I am outlining the specific steps needed to locate an AWS Cognito IdentityPoolId in hopes this helps someone who is looking for this answer.
Option #1: Through the AWS Console
- Login to AWS
- Click Services
- Search for Cognito
- Click Cognito
- Click Manage Identity Pools
- Click on the name of the Identity Pool you would like the IdentityPoolId of.
- Click on Sample code
You will then see a block of code that looks like this.
// Initialize the Amazon Cognito credentials provider
CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
getApplicationContext(),
"your-identity-pool-id-will-be-here", // Identity pool ID
Regions.US_EAST // Region
);
Option #2: Through the AWS CLI
- Install the AWS CLI on your machine
- Type
aws cognito-identity list-identity-pools --max-results 60
- Press
Enter
When complete, you will see an object that looks like this.
{
"IdentityPools": [
{
"IdentityPoolId": "your-identity-pool-id-will-be-here",
"IdentityPoolName": "Cognito Identity Pool"
}
]
}