diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 9e30094ac..2c4891acb 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -1127,9 +1127,6 @@ func s3Connection(opt *Options) (*s3.S3, *session.Session, error) { return nil, nil, errors.New("secret_access_key not found") } - if opt.Region == "" && opt.Endpoint == "" { - opt.Endpoint = "https://s3.amazonaws.com/" - } if opt.Region == "" { opt.Region = "us-east-1" }