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
require('lasso').configure({
plugins: [
{
plugin: 'lasso-s3-writer',
config: {
awsConfig: {
region: 'us-east-1'
},
bucket: 'my-awesome-s3-bucket'
}
}
],
...
});
bucket
{String|Object} - Name of the AWS S3 bucket to upload to or a configuration object that is passed tos3.createBucket(...)
awsConfig
{Object} (optional)- Configuration properties that is passed toAWS.config.update(...)
s3Config
{Object} (optional) - Configuration properties that is passed toAWS.S3(...)
s3
{AWS.S3} (optional) - AnAWS.S3
objectcalculateKey
{Function} (optional) - A function to calculate a unique key for each bundle or resource. Defaults to usingsha1
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.