Skip to content

rexxars/mead-plugin-source-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

S3 source for the Mead image transformer service

Resources

License

Stars

Watchers

Forks

Packages

No packages published