I'm attempting to get the pixel value of a raster that stored in an S3 bucket via a script that's using Flask and is hosted on Google's App Engine. If I run the script on my local machine, everything works fine. When I attempt to deploy the script to GAE, it deploys fine, but the web app does not work. I believe it has something to do with the AWS access keys. I have them in my app.yaml as such:
env_variables:
AWS_ACCESS_KEY_ID: 'my-key-id'
AWS_SECRET_ACCESS_KEY: 'my-secret-key-id'
I've also tried setting the variables in the actual python script using:
os.environ['AWS_SECRET_ACCESS_KEY'] = secret_access_key
os.environ['AWS_ACCESS_KEY_ID'] = access_key
the error I'm getting is:
Traceback (most recent call last): File "rasterio/_base.pyx", line 216,
in rasterio._base.DatasetBase.__init__ File "rasterio/_shim.pyx", line 67,
in rasterio._shim.open_dataset File "rasterio/_err.pyx", line 205,
in rasterio._err.exc_wrap_pointer rasterio._err.CPLE_HttpResponseError:
CURL error: error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none
Can anyone see why this error is being thrown or has anyone used rasterio in GAE before?