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

Closed
jakelowie opened this issue Jul 26, 2024 · 2 comments
Closed
Labels
Question Further information is requested Triaged

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

@ltrung ltrung added the Triaged label Nov 1, 2024
@ltrung
Copy link
Contributor

ltrung commented Nov 1, 2024

Closing this due to inactivity. Please reopen or submit a support case if this is still an issue.

@ltrung ltrung closed this as completed Nov 1, 2024
@georgezy-amzn georgezy-amzn added the Question Further information is requested label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested Triaged
Projects
None yet
Development

No branches or pull requests

3 participants