Skip to content

Commit

Permalink
Merge pull request #187 from owen-c/owen/fix-aws-v3
Browse files Browse the repository at this point in the history
Fix setting of credentials via plugin config
  • Loading branch information
lukemelia authored Mar 26, 2024
2 parents 0a506b6 + 2700d0e commit 51c7b2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ module.exports = CoreObject.extend({

if (accessKeyId && secretAccessKey) {
this.plugin.log('Using AWS access key id and secret access key from config', { verbose: true });
s3Options.accessKeyId = accessKeyId;
s3Options.secretAccessKey = secretAccessKey;
s3Options.credentials = {
accessKeyId: accessKeyId,
secretAccessKey: secretAccessKey,
};
}

if (signatureVersion) {
Expand Down

0 comments on commit 51c7b2b

Please sign in to comment.