hotosm / oam-dynamic-tiler

Dynamic tiling of raster data for OpenAerialMap + others
Other
35 stars 12 forks source link

Wrap `s3` commands to use `--endpoint-url` #42

Open tombh opened 7 years ago

tombh commented 7 years ago

Official docs here.

This would enable 2 significant things:

  1. Fully isolated tests using something like localstack
  2. Local buckets using something like Minio

I wonder if this can be done by just creating a aws-custom script proxying to aws, then replacing all occurrences of aws in the dynamic tiler code?

mojodna commented 7 years ago

See also https://github.com/aws/aws-cli/issues/1270

Yeah, that seems like a really clean way of doing it; we could inject our own environment variable checks there.

fatihtekin commented 6 years ago

you can do below work around

from boto3 import Session
Session.client.defaults = (None, None, False, None, 'http://localhost:4575', None, None, None, None)