diff --git a/pkg/storage/s3/s3.go b/pkg/storage/s3/s3.go index 8d648b12..3ae2d173 100644 --- a/pkg/storage/s3/s3.go +++ b/pkg/storage/s3/s3.go @@ -40,10 +40,6 @@ func New(s3Conf *config.S3Config, timeout time.Duration, options ...func(*aws.Co return nil, errors.E(op, err) } - // Remove anonymous credentials from the default config so that - // session.NewSession can auto-resolve credentials from role, profile, env etc. - awsConfig.Credentials = nil - for _, o := range options { o(&awsConfig) }