I am currently working on a react app to integrate a map using AWS Location Services. I've followed this tutorial online. The tutorial uses AWS Cognito for user authentication but my application already has our own in-house authentication method. Thus, I was looking to implement the map without authentication (from Cognito).
I've followed the same youtube tutorial's code linked here, but I kept on facing issues with the authentication. The code uses the createRequestTransformer()
function from the amazon-location-helpers
package, requiring credentials but since I want to allow unauthenticated access I'm using Identity Pool ID instead.
This is the error that I am facing on my React app and I've received a wide range of errors for authentication from 400, 403 to 404.
Unhandled Rejection (InvalidIdentityPoolConfigurationException): Invalid identity pool configuration. Check assigned IAM roles for this pool.
I have tried all solutions from the stackoverflow post here but to no avail. Although I am unable to access, my AWS Cognito console adds in a user count whenever I refresh the page as seen in the image below.