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({ 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 }); }