简体   繁体   中英

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?

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.

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.

确保您的Auth和Unauth的ARN配置是完整的ARN

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM