Skip to content

Plugin for writing resources and bundles to Amazon AWS S3 using Lasso

Notifications You must be signed in to change notification settings

lasso-js/lasso-s3-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lasso-s3-writer

A plugin for lasso that will upload bundles and resources to Amazon S3.

WARNING: lasso-s3-writer should only be used to do Lasso prebuilds

Usage

require('lasso').configure({
  plugins: [
    {
      plugin: 'lasso-s3-writer',
      config: {
        awsConfig: {
          region: 'us-east-1'
        },
        bucket: 'my-awesome-s3-bucket'
      }
    }
  ],
  ...
});

Configuration Properties

  • bucket {String|Object} - Name of the AWS S3 bucket to upload to or a configuration object that is passed to s3.createBucket(...)
  • awsConfig {Object} (optional)- Configuration properties that is passed to AWS.config.update(...)
  • s3Config {Object} (optional) - Configuration properties that is passed to AWS.S3(...)
  • s3 {AWS.S3} (optional) - An AWS.S3 object
  • calculateKey {Function} (optional) - A function to calculate a unique key for each bundle or resource. Defaults to using sha1 checksum.
  • readTimeout {Number} (optional) - The maximum amount of time to wait for a file to be read. Defaults to 30 seconds.
  • logger {Object} (optional) - Logger to write logs to. Does not log if not specified.

About

Plugin for writing resources and bundles to Amazon AWS S3 using Lasso

Resources

Stars

Watchers

Forks

Packages

No packages published