From 2700d0e2e3bd7a2f43eaf9ec1cfa3f67db02ba4c Mon Sep 17 00:00:00 2001 From: Owen Cummings Date: Mon, 25 Mar 2024 16:21:56 -0700 Subject: [PATCH] Fix setting of credentials via plugin config --- lib/s3.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/s3.js b/lib/s3.js index ce5cbc7..a2feaee 100644 --- a/lib/s3.js +++ b/lib/s3.js @@ -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) {