Skip to content

Commit

Permalink
Try direct IAM role credentials.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidenissov-cog committed Aug 15, 2024
1 parent 7052963 commit 863a48e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions internal/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,12 @@ func (s *s3Storage) refreshClients() (err kv.Error) {
// We have no static credentials: switch to default AWS credentials chain
// Initialize minio client with a credentials chain (which includes IAM role)
options := minio.Options{
Creds: credentials.NewChainCredentials([]credentials.Provider{
&credentials.EnvAWS{},
&credentials.FileAWSCredentials{},
&credentials.IAM{},
}),
Creds: credentials.NewIAM(""),
//Creds: credentials.NewChainCredentials([]credentials.Provider{
// &credentials.EnvAWS{},
// &credentials.FileAWSCredentials{},
// &credentials.IAM{},
//}),
Secure: s.useSSL,
Region: s.creds.Region,
BucketLookup: minio.BucketLookupPath,
Expand Down

0 comments on commit 863a48e

Please sign in to comment.