$ npm install gulp-aws-s3
export AWS_ACCESS_KEY_ID="<value>"
export AWS_SECRET_ACCESS_KEY="<value>"
export AWS_REGION="<value>"
export AWS_BUCKET="<value>"
var gulpAwsS3 = require('gulp-aws-s3').setup({
key : '<value>',
secret : '<value>',
region : '<value>',
bucket : '<value>'
});
...
.pipe(gulpAwsS3.upload({<options>}, {
key : '<value>',
secret : '<value>',
region : '<value>',
bucket : '<value>'
});
...
Upload file to s3
The following options are supported:
acl
the canned ACL to apply to the object, defaults topublic-read
.path
s3 base path, defaults to/
.
Possible values of acl
include: private
, public-read
, public-read-write
, authenticated-read
, bucket-owner-read
, bucket-owner-full-control
.
export AWS_ACCESS_KEY_ID="<value>"
export AWS_SECRET_ACCESS_KEY="<value>"
export AWS_REGION="<value>"
export AWS_BUCKET="<value>"
$ npm test
The MIT License