Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AccessDenied eventhough I've already added the needed permission for the Role #2927

Open
jakelowie opened this issue Jul 26, 2024 · 1 comment

Comments

@jakelowie
Copy link

jakelowie commented Jul 26, 2024

What are you trying to do?

I am trying to start a messaging session on my front end using the Chime SDK, I am doing these by connecting to my AWS using a Cognito Identity Pool since connecting using AWS Access key and secret key in the front end is not advisable since it will exploit the important credentials. Now the problem is I already added the needed policy for the Role for that specifc Identity pool but I still get AccessDenied Exception. Can you please help me where I got it wrong here? Or maybe there is something that I am missing.

Here is my Identity pool
image

Here is the role with the permission
image

Here is how I setup the config
image

Here is the returned credentials
image

And here is the error I get
image

What documentation have you looked at so far?

Already read the set up of AWS SDK using Javascript

@ltrung
Copy link
Contributor

ltrung commented Aug 30, 2024

Could you check our chat demo application which also uses Cognito https://github.com/aws-samples/amazon-chime-sdk/tree/main/apps/chat? You can look at the cloudformation created to see an example of how we setup Cognito User and Identity Pool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants