Skip to content

Commit f8f5047

Browse files
committed
Added AuthenticationRegion to AmazonS3Client Endpoint based clients
1 parent b1c5e2f commit f8f5047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp.Web.Providers.AWS/AmazonS3ClientFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static AmazonS3Client CreateClient(IAWSS3BucketClientOptions options)
2323
{
2424
// AccessKey can be empty.
2525
// AccessSecret can be empty.
26-
AmazonS3Config config = new() { ServiceURL = options.Endpoint, ForcePathStyle = true };
26+
AmazonS3Config config = new() { ServiceURL = options.Endpoint, ForcePathStyle = true, AuthenticationRegion = options.Region };
2727
return new AmazonS3Client(options.AccessKey, options.AccessSecret, config);
2828
}
2929
else if (!string.IsNullOrWhiteSpace(options.AccessKey))

0 commit comments

Comments
 (0)