aurbac / amplify-quicksight-dashboard-embedded

61 stars 16 forks source link

What is the <cognito-authenticated-role-arn> #2

Open mahtabraws opened 3 years ago

mahtabraws commented 3 years ago

I am getting an 200 status with the following message, after I followed all of your steps: "Request ARN is invalid". I am confused as to what arn to use.

Thanks, Rageeb

aurbac commented 3 years ago

Hi Rageeb, amplify created an Identity Pool for you with two IAM roles for authenticated and not authenticated users, look for the "Authenticated role", in the IAM console you can see the details for that role and copy the ARN.

You can find more information about these roles in: https://docs.aws.amazon.com/cognito/latest/developerguide/identity-pools.html#authenticated-and-unauthenticated-identities

mahtabraws commented 3 years ago

Hi Uriel,

I have figured that part out. I followed all the steps in the tutorial but am getting a CORS error. I have attached a screenshot to this to show the error. Do you have any idea what might be causing it and what could be a possible solution? Thanks.

Best, Rageeb Screen Shot 2020-12-15 at 8 00 59 PM

aurbac commented 3 years ago

I see that you are using your custom domain, try with this: https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors-console.html

mahtabraws commented 3 years ago

I have tried with those steps as well. I then tried by not restricting the API Access. This got rid of the CORS preflight error, but I still get a 404 error.