amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
424 stars 232 forks source link

Invalid IdentityPool Configuration Exception #167

Closed ch3ck closed 5 years ago

ch3ck commented 5 years ago

This question is related to CUP, IDPs and IAM roles. After creating a new CUP and IDP, proceeded with adding them to IAM Trust policy for the assumed I AM Role. I keep getting this error:

Invalid identity pool configuration. Check assigned IAM roles for this pool

I've explored this problem for hours and my understanding is it has to do with the IAM role Trust policy attached to the execution role for this Identity Pool. Any ideas will be greatly appreciated.

ch3ck commented 5 years ago

Issue fixed

gowreswaran commented 5 years ago

@Ch3ck May i know how you fixed this issue? I'm running into the same issue now.

ch3ck commented 5 years ago

@gowreswaran Add the Cognito IDP ID as a resource to your IAM role and add it to the IAM trust policy as well, this error should go away.