mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
lib/backup: allow using ~/.aws/config
without region
Use us-west-2 for determining bucket region.
This commit is contained in:
parent
e6eee2bebf
commit
a034f02fb2
@ -80,7 +80,7 @@ func (fs *FS) Init() error {
|
||||
} else {
|
||||
// Determine bucket region.
|
||||
ctx := context.Background()
|
||||
region, err := s3manager.GetBucketRegion(ctx, sess, fs.Bucket, "")
|
||||
region, err := s3manager.GetBucketRegion(ctx, sess, fs.Bucket, "us-west-2")
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot determine region for bucket %q: %w", fs.Bucket, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user