Browse through the questions and answers listed below or filter and sort to narrow down your results.
Unauthenticated Access to Maps Not Working But Authenticated Access is
I have a map in AWS Location Service and a React frontend with mapbox-gl. When accessing this resource as an authenticated user everything works fine. The attached policies for the unauthenticated role have the same map permissions and yet unauthenticated access does not work. The role has other permissions too for appsync and these do work in both the unauthenticated and authenticated cases which indicates that the role is being assumed in both cases. The error message when trying to access the map as an unauthenticated user states that the user assumed the correct unauthenticated role but was not permitted to access the map but as far as I can tell they are (same policies as authenticated role which works). Could the problem be that my Cognito resources are in eu-west-2 (London) and the map is in eu-west-1 (Ireland) ? If so, not sure why it works for authenticated access. If this is the issue, any idea when the service will be available in eu-west-2?
Accepted AnswerAmazon Location Service
1
answers
0
votes
3
views
asked 9 months ago
Unauthenticated access to Places
Hi,
I'm just getting started with Amazon Location Services. I've created my first map, and can access it fine as an unauthenticated user. However, I'm trying to now add geocoding functionality, but it's not clear to me how to make access to the 'places' API be unauthenticated. The documentation explicitly covers granting unauthenticated access to maps, but it is silent on this topic for places.
I have tried a simple POST to https://places.geo.eu-west-1.amazonaws.com/places/v0/indexes/<placesname>/search/text, but I get back an HTTP 403 response.
Can anyone help?
Thanks,
Sam
Edited by: samcrawford on Jan 14, 2021 1:39 PM
Accepted AnswerAmazon Location Service
6
answers
0
votes
4
views
asked a year ago