DHI/terracotta

Status 403 on AWS Lambda

zufryy opened this issue · 7 comments

Hi All,

I can deploy the terracotta on the AWS Lambda by following this tutorial :
https://terracotta-python.readthedocs.io/en/latest/tutorials/aws.html

I had no problem accessing its apidoc pages when it was deployed.
However, when I try to put the address from the API (RGB) into my Leaflet page, it always gives me the "Forbidden" error message 403.

I believe it is not the terracotta problem but more to AWS settings. Do you have any suggestions on which tutorial I can follow/read to overcome these issues?

Thank you in advance for your time.

Best regards,
Zufry M. I.

@panakouris might have some more recent experience with Lambda deployments. Might be a CORS issue?

@zufryy Can you try accessing a raster tile manually (by constructing the URL)? If that works without a 403 it's definitely CORS.

@dionhaefner
This is the sample link of the raster tile that gives me "message":"Forbidden"
https://5gp43j697l.execute-api.eu-central-1.amazonaws.com/rgb/MBES/18/209342/135359.png?r=B01&r_range=[1,1]&g=B02&g_range=[1,1]&b=B03&b_range=[1,1]

Yes, after adding the /development/ it is working fine.

I was following the server URL from the apidoc (https://ibb.co/RhrTw3k) that showing without the /development/ .
Is it a bug in apidoc ?

Is it a bug in apidoc ?

Yes, an ooold one #114... 😬

Fixed in #278. This one has been around way too long.