Skip to content

Commit

Permalink
check "client.region" prop
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Feb 13, 2024
1 parent 7618bd0 commit 4919648
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions io/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func createS3FileIO(parsed *url.URL, props map[string]string) (IO, error) {

if region, ok := props[S3Region]; ok {
opts = append(opts, config.WithRegion(region))
} else if region, ok := props["client.region"]; ok {
opts = append(opts, config.WithRegion(region))
}

accessKey, secretAccessKey := props[S3AccessKeyID], props[S3SecretAccessKey]
Expand Down

0 comments on commit 4919648

Please sign in to comment.