From e4a3d2b8ec2d63555fe2614369778b61a701d4ce Mon Sep 17 00:00:00 2001 From: Douwe Homans Date: Sat, 28 Apr 2018 15:47:16 +0200 Subject: [PATCH 1/2] added support for accesKeyId and secretAccessKey, to support non public buckets --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 9843d8e..3a43ef2 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,9 @@ class S3Notifier { this.s3 = new AWS.S3({ apiVersion: '2006-03-01', signatureVersion: 'v4', - region: options.region + region: options.region, + accessKeyId: options.accessKeyId, + secretAccessKey: options.secretAccessKey }); } From 493363114946bc0eb13739ef982ab03c136db19b Mon Sep 17 00:00:00 2001 From: Douwe Homans Date: Sat, 28 Apr 2018 15:56:21 +0200 Subject: [PATCH 2/2] Updated Readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b3fc53b..9e46c73 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ let notifier = new S3Notifier({ bucket: S3_BUCKET, key: S3_KEY, region: AWS_REGION // optional + accessKeyId: AWS_ACCESS_KEY_ID // optional, + secretAccessKey: AWS_SECRET_ACCESS_KEY // optional }); let server = new FastBootAppServer({