Socket
Socket
Sign inDemoInstall

gulp-aws

Package Overview
Dependencies
18
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-aws

AWS S3 plugin for Gulp


Version published
Maintainers
1
Install size
1.07 MB
Created

Readme

Source

gulp-aws

AWS S3 plugin for gulp. This plugin is based open AWS CLI, that supports much more features (and has better performances) then available AWS node.js libraries.

Features

  • Upload to S3

Requirements

Install

npm install gulp-aws --save-dev

API

aws.s3(bucket, options)

Upload files to AWS S3.

  • bucket: AWS bucket name
Required options
  • aws_region: AWS region
  • aws_key: AWS access key
  • aws_secret: AWS access secret
Other options
  • aws_cli_path: The path of the AWS CLI. Defaults to /usr/local/bin/aws
  • prefix_path: A path to prefix the basename of the file with when forming the S3 key
Example

Create a tar.gz with the content of the 'src' directory and upload it to S3

var aws  = require('gulp-aws');
var tar  = require('gulp-tar');
var gzip = require('gulp-gzip');

gulp.task('my-task', function() {
    return gulp.src('src/**/*', {buffer:false})
        .pipe(tar('mypackage.tar'))
        .pipe(gzip())
        .pipe(gulp.dest('./build'))
        .pipe(aws.s3('my-bucket-name', {
            aws_region: 'eu-west-1',
            aws_key:    'your aws key here',
            aws_secret: 'your aws secret here'
        }));
});

Changes

2018-10-23 - 0.1.0
  • Replaced deprecated gulp-util with plugin-error (PR #11 - thanks to chriskinsman)

Contributors

Keywords

FAQs

Last updated on 23 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc