Fixes endpoint creds (#1325)

* f

* r
This commit is contained in:
Manu Gupta
2019-08-06 07:45:14 -07:00
committed by Marwan Sulaiman
parent df82bbc0f3
commit be908fe713
+1 -1
View File
@@ -34,7 +34,7 @@ type Storage struct {
func New(s3Conf *config.S3Config, timeout time.Duration, options ...func(*aws.Config)) (*Storage, error) {
const op errors.Op = "s3.New"
awsConfig := aws.NewConfig()
awsConfig := defaults.Config()
awsConfig.Region = aws.String(s3Conf.Region)
for _, o := range options {
o(awsConfig)