Skip to content

Commit

Permalink
Patch/fix aws endpoint url try2 (#667)
Browse files Browse the repository at this point in the history
* do not set default s3 client endpoint url

* update changelog
  • Loading branch information
vincentsarago authored Jan 8, 2024
1 parent 2e8d77e commit 526c2ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# 6.2.10 (2024-01-08)

* remove default Endpoint URL in AWS S3 Client for STAC Reader

# 6.2.9 (2023-12-21)

* fix AWS endpoint credential for STAC `fetch` function, using same defaults as GDAL vsis3 configuration
Expand Down
2 changes: 1 addition & 1 deletion rio_tiler/io/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def aws_get_object(

# AWS_S3_ENDPOINT and AWS_HTTPS are GDAL config options of vsis3 driver
# https://gdal.org/user/virtual_file_systems.html#vsis3-aws-s3-files
endpoint_url = os.environ.get("AWS_S3_ENDPOINT", "s3.amazonaws.com")
endpoint_url = os.environ.get("AWS_S3_ENDPOINT", None)
if endpoint_url:
use_https = os.environ.get("AWS_HTTPS", "YES")
if use_https.upper() in ["YES", "TRUE", "ON"]:
Expand Down

0 comments on commit 526c2ab

Please sign in to comment.