From b856581ad30118750c519896669fb1330a3cfed5 Mon Sep 17 00:00:00 2001 From: Nikolay Date: Thu, 13 Oct 2022 09:30:07 +0200 Subject: [PATCH] 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 --- lib/backup/s3remote/s3.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/backup/s3remote/s3.go b/lib/backup/s3remote/s3.go index f6dafe5830..a5aac8532d 100644 --- a/lib/backup/s3remote/s3.go +++ b/lib/backup/s3remote/s3.go @@ -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 {