2
rated 0 times
[
7]
[
5]
/ answers: 1 / hits: 30488
/ 9 Years ago, sun, may 24, 2015, 12:00:00
I am using the AWS Javascript API and trying to get the assigned cognito id:
AWS.config.credentials.get(function(err) {
if (!err) {
console.log(Cognito Identity Id: + AWS.config.credentials.identityId);
}
});
Why does this result in a 400 error with the message below?
{__type:InvalidIdentityPoolConfigurationException,message:Invalid identity pool configuration. Check assigned IAM roles for this pool.}
I have IAM roles configured for authenticated and non-authenticated users.
{
Version: 2012-10-17,
Statement: [{
Action: [
mobileanalytics:PutEvents,
cognito-sync:*
],
Effect: Allow,
Resource: [
*
]
}]
}
More From » amazon-web-services