Skip to content

Commit 4c205e2

Browse files
committed
fix: username/password credentials method wrongly removed
1 parent b647236 commit 4c205e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

s3.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ func (u *S3Watcher) SetConfig(m map[string]string) error {
8686
options.Creds = credentials.NewFileAWSCredentials(u.config.AWSFileName, u.config.AWSFileProfile)
8787
} else if u.config.UseAWSIAMCredentials {
8888
options.Creds = credentials.NewIAM(u.config.AWSIAMEndpoint)
89+
} else {
90+
options.Creds = credentials.NewStaticV4(u.config.AccessKey, u.config.SecretAccessKey, u.config.SessionToken)
8991
}
9092

9193
client, err := minio.New(u.config.Endpoint, &options)

0 commit comments

Comments
 (0)