Skip to content

Commit

Permalink
fix: username/password credentials method wrongly removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix86 committed Nov 9, 2022
1 parent b647236 commit 4c205e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ func (u *S3Watcher) SetConfig(m map[string]string) error {
options.Creds = credentials.NewFileAWSCredentials(u.config.AWSFileName, u.config.AWSFileProfile)
} else if u.config.UseAWSIAMCredentials {
options.Creds = credentials.NewIAM(u.config.AWSIAMEndpoint)
} else {
options.Creds = credentials.NewStaticV4(u.config.AccessKey, u.config.SecretAccessKey, u.config.SessionToken)
}

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

0 comments on commit 4c205e2

Please sign in to comment.