diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 0b66088dc..364de40d1 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -1188,9 +1188,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" }