2.0.0 • Published 7 years ago

mead-plugin-source-s3 v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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.