jsreport extension adding support for storing blobs in aws s3
Clone or download
Latest commit 8148d39 Jan 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib update docs and add s3Options Oct 23, 2018
.eslintrc initial implementation Oct 23, 2018
.gitignore initial implementation Oct 23, 2018
.travis.yml initial implementation Oct 23, 2018
README.md add doccs links Jan 5, 2019
index.js initial implementation Oct 23, 2018
jsreport.config.js fix lint Oct 23, 2018
package-lock.json initial implementation Oct 23, 2018
package.json update docs and add s3Options Oct 23, 2018

README.md

jsreport-aws-s3-storage

NPM Version Build Status

jsreport extension adding support for storing blobs in aws s3

Some of the jsreport extensions requires a blob storage for storing binary objects. This implementation stores these objects like output reports inside cost effective aws s3.

See the blob sorages general documentation https://jsreport.net/learn/blob-storages

See how to persist jsreport output reports https://jsreport.net/learn/reports

Installation

npm install jsreport-aws-s3-storage

Configuration

Required options are:

  • accessKeyId
  • secretAccessKey
  • bucket

Optionally you can set

  • s3Options: azure blob storage container, this defaults to jsreport
{
	"blobStorage": {  
		"provider": "aws-s3-storage"
	},
	"extensions": {
		"aws-s3-storage": {
			"accessKeyId": "...",
			"secretAccessKey": "...",
			"bucket": "...",
			"s3Options": {...}
		}
	}
}

jsreport-core

var jsreport = require('jsreport-core')({ blobStorage: { provider: 'aws-s3-storage' } })
jsreport.use(require('jsreport-aws-s3-storage')({...}))