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"]: