Skip to content

Commit

Permalink
Merge pull request #6566 from kaovilai/s3profilefix-1.11
Browse files Browse the repository at this point in the history
GetS3Credentials pass profile from config to NewSharedCredentials
  • Loading branch information
Lyndon-Li authored Aug 7, 2023
2 parents d901977 + aca6279 commit 2e5aeb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/unreleased/6566-kaovilai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Non default s3 credential profiles work on Unified Repository Provider (kopia)
2 changes: 1 addition & 1 deletion pkg/repository/config/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func GetS3Credentials(config map[string]string) (credentials.Value, error) {
return credentials.Value{}, errors.New("missing credential file")
}

creds := credentials.NewSharedCredentials(credentialsFile, "")
creds := credentials.NewSharedCredentials(credentialsFile, config[awsProfileKey])
credValue, err := creds.Get()
if err != nil {
return credValue, err
Expand Down

0 comments on commit 2e5aeb7

Please sign in to comment.