question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NotAuthorizedException trying to call cognito.set_identity_pool_roles()

See original GitHub issue

Not sure this is the right place to ask, but I’m also not sure WHERE to ask this. I’m now getting:

botocore.exceptions.ClientError: An error occurred (NotAuthorizedException) when calling the SetIdentityPoolRoles operation: Access to Role ‘SomeRoleName’ is forbidden.

I created the role just a few lines previous in the python script using

 iam = session.client('iam');
 iam.create_role(..)

and now trying to call

cognito = session.client('cognito-identity', region_name='us-east-1')
cognito.set_identity_pool_roles(..)

Am I doing something wrong? Seems the same credentials that created the role should be able to reference it.

Any ideas?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
jvilhubercommented, Apr 28, 2015

Yes, that was it. The documentation could be better 😉

3reactions
jvilhubercommented, Apr 28, 2015

One thought: I’m passing in the roles via RoleName, instead of an ARN. Perhaps the API wants an ARN?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SetIdentityPoolRoles - Amazon Cognito Federated Identities
Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action. You must use AWS developer credentials...
Read more >
AWS Cognito NotAuthorizedException A client attempted to ...
In the AWS website go to your User Pool -> Apps -> Show Details -> Set attribute read write permissions. Make sure every...
Read more >
CognitoIdentityClient (AWS SDK for Java - 2.0.0-preview-11)
If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably ... You must use AWS Developer...
Read more >
Package cognitoidentity - ActiveGo 1.8.3 Documentation
If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably want to make API calls via...
Read more >
AmazonCognitoIdentityClient (AWS SDK for Android
If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably want to make API calls via...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found