diff --git a/CHANGES.md b/CHANGES.md index 8cd9bdfb..6fd4dfa9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/rio_tiler/io/stac.py b/rio_tiler/io/stac.py index 5a6d8f72..1cc28c8d 100644 --- a/rio_tiler/io/stac.py +++ b/rio_tiler/io/stac.py @@ -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"]: