Skip to content

Commit 2ff5827

Browse files
committed
include region in endpoint
1 parent af7bcaf commit 2ff5827

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extension/httpfs/s3fs.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ S3AuthParams S3AuthParams::ReadFrom(optional_ptr<FileOpener> opener, FileOpenerI
200200
result.endpoint = "s3.amazonaws.com";
201201
}
202202

203+
if (result.endpoint == "s3.amazonaws.com" && !result.region.empty()) {
204+
result.endpoint = StringUtil::Format("s3.%s.amazonaws.com", result.region);
205+
}
206+
203207
return result;
204208
}
205209

0 commit comments

Comments
 (0)