mead-plugin-source-s3

2.0.0 • Public • Published

mead-plugin-source-s3

npm versionBuild StatusCoverage StatusDependency status

S3 source for the Mead image transformer service - loads images from an S3 bucket.

Installation

npm install --save mead-plugin-source-s3

Usage

Your mead configuration file (mead --config <path-to-config.js>):

module.exports = {
  // Load the plugin
  plugins: [
    require('mead-plugin-source-s3')
  ],
 
  // Define a source using S3
  sources: [{
    name: 'my-s3-source',
    adapter: {
      type: 's3',
      config: {
        pathPrefix: 'photos', // Optional
        bucket: 'my-bucket-name',
 
        // Either provide `configFile` or both `accessKeyId` and `secretAccessKey`
        configFile: '/path/to/s3-key.json'
      }
    }
  }]
}

License

MIT-licensed. See LICENSE.

Package Sidebar

Install

npm i mead-plugin-source-s3

Weekly Downloads

1

Version

2.0.0

License

MIT

Last publish

Collaborators

  • rexxars