lib/backup: set s3 default region to us-west-2 (#3224)

* lib/backup: set s3 default region to us-west-2
it should fix an error with region detection for bucket, if AWS_REGION env var is not set

* Update lib/backup/s3remote/s3.go

Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
This commit is contained in:
Nikolay 2022-10-13 09:30:07 +02:00 committed by Aliaksandr Valialkin
parent c7360e1fa0
commit 07140e0877
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -61,6 +61,7 @@ func (fs *FS) Init() error {
}
configOpts := []func(*config.LoadOptions) error{
config.WithSharedConfigProfile(fs.ProfileName),
config.WithDefaultRegion("us-east-1"),
}
if len(fs.CredsFilePath) > 0 {