diff --git a/internal/backend/s3/s3.go b/internal/backend/s3/s3.go index ff81a05d6..d48813cf2 100644 --- a/internal/backend/s3/s3.go +++ b/internal/backend/s3/s3.go @@ -107,13 +107,13 @@ func getCredentials(cfg Config) (*credentials.Credentials, error) { // call to a pre-defined endpoint, only valid inside // configured ec2 instances) creds := credentials.NewChainCredentials([]credentials.Provider{ + &credentials.EnvAWS{}, &credentials.Static{ Value: credentials.Value{ AccessKeyID: cfg.KeyID, SecretAccessKey: cfg.Secret.Unwrap(), }, }, - &credentials.EnvAWS{}, &credentials.EnvMinio{}, &credentials.FileAWSCredentials{}, &credentials.FileMinioClient{},