Isaac Wasserman
Isaac Wasserman

Reputation: 1541

Amazon Cognito Identity Pool can not be found

I'm making an app that uploads photos to an S3 bucket using the AWS SDK with Amazon Cognito. When I run the function that does this I get an error in the console that says the Identity Pool [the id of my identity pool] can't be found. I've found a few solutions to this issue around the internet. However, none of them seem to work for me. Any ideas?

Upvotes: 3

Views: 5721

Answers (3)

iSkore
iSkore

Reputation: 7553

Each time I get this issue it is because the IAM role does not have permissions to view the pool OR the pool does not have Unauthenticated Identities

Add AmazonCognitoDeveloperAuthenticatedIdentities OR AmazonCognitoPowerUser to your IAM role

You will need some level of S3 access attached to your policy in the future to access S3.

Also, please add more information to your question. Code used, information about the pool set up, etc. Also, review my answer for Setting up Cognito

Edit:

Per @justderb’s comment - removed reference to AmazonS3FullAccess and updated appropriately.

Upvotes: 1

Isaac Wasserman
Isaac Wasserman

Reputation: 1541

Make sure your ARN configuration for your Auth and Unauth are the full ARN

Upvotes: 2

perpil
perpil

Reputation: 1584

Assuming you have the correct identity pool id, you may not be connecting to the same region that the pool was created in. The region is the first portion of the identity pool id. Incorrect access policies will not cause this error. I caution against granting blanket access to your resources, if end users will only be reading and writing from s3, only provide that access, don't give them full access.

Upvotes: 6

Related Questions