Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-elastic-beanstalk-deploy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-elastic-beanstalk-deploy - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

14

lib/setup.js

@@ -10,2 +10,3 @@ 'use strict';

let sets = {};
if (opts.accessKeyId && opts.secretAccessKey) {

@@ -16,3 +17,8 @@ AWS.config.credentials = new AWS.Credentials({

});
} else if (opts.profile) {
AWS.config.credentials = new AWS.SharedIniFileCredentials({
profile: opts.profile
});
}
if (!opts.region) {

@@ -34,9 +40,9 @@ throw new Error('Param missing [region]');

} catch(e) {
let error_msg;
let errorMsg;
if (e.code === 'ENOENT' ) {
error_msg = new Error('Invalid sourceBundle, It is not exist ' + opts.sourceBundle);
errorMsg = new Error('Invalid sourceBundle, It is not exist ' + opts.sourceBundle);
} else {
error_msg = e;
errorMsg = e;
}
throw error_msg;
throw errorMsg;
}

@@ -43,0 +49,0 @@

{
"name": "gulp-elastic-beanstalk-deploy",
"version": "0.0.1",
"version": "0.1.0",
"description": "A Gulp module for deploying to AWS Elastic Beanstalk",

@@ -11,3 +11,3 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/scottwrobinson/gulp-elastic-beanstalk-deploy.git"
"url": "git@github.com:scottwrobinson/gulp-elastic-beanstalk-deploy.git"
},

@@ -42,3 +42,3 @@ "keywords": [

},
"homepage": "https://github.com/scottwrobinson/gulp-elastic-beanstalk-deploy#readme",
"homepage": "https://github.com/scottwrobinson/gulp-elastic-beanstalk-deploy",
"dependencies": {

@@ -45,0 +45,0 @@ "aws-sdk": "^2.3.16",

@@ -6,3 +6,3 @@ gulp-elastic-beanstalk-deploy

This plugin helps you to integrate your deployment task on the Amazon AWS Elasticbeanstalk service into gulp. Your deployment job will be more mainatainable and efficient, so that you can increase productivity.
This plugin helps you to integrate your deployment task on the Amazon AWS Elastic Beanstalk service into gulp. Your deployment job will be more mainatainable and efficient, so that you can increase productivity.

@@ -16,3 +16,3 @@ _Based on [gulp-beanstalk-deploy](https://github.com/a0ly/gulp-beanstalk-deploy) by SeungJae Lee._

```shell
npm install gulp-elastic-beanstalk-deploy
$ npm install gulp-elastic-beanstalk-deploy
```

@@ -24,5 +24,5 @@

gulp.task('deploy', function(cb) {
eb({
// options here
}, cb)
eb({
// options here
}, cb)
});

@@ -35,2 +35,8 @@ ```

##### profile
* Type: `string`
The AWS profile to use. This refers to an IAM user with credentials in the `~/.aws/credentials` file.
##### accessKeyId

@@ -41,3 +47,3 @@

The aws access key id. If nothing passwed, it will use your local aws profile credential.
The AWS access key id. If nothing is passed, it will use your local AWS profile credential.

@@ -49,3 +55,3 @@ ##### secretAccessKey

The aws access secret access key. If nothing passwed, it will use your local aws profile credential.
The AWS access secret access key. If nothing is passed, it will use your local AWS profile credential.

@@ -96,4 +102,4 @@ ##### region *

{
bucket: // applicationName
key: // sourceBundle basename
bucket: '', // applicationName
key: '' // sourceBundle basename
}

@@ -105,20 +111,21 @@ ```

archive file path to upload. It must exists in your local file system, which means the archive file must be prepared before deployment task.
Archive file path to upload. It must exists in your local file system, which means the archive file must be prepared before deployment task.
## Usage Example
``` javascript
var gulp = require('gulp');
var eb = require('gulp-elastic-beanstalk-deploy');
const gulp = require('gulp');
const eb = require('gulp-elastic-beanstalk-deploy');
gulp.task('deploy', function(cb) {
eb({
accessKeyId: 'Your AWS accessKeyId', // optional
secretAccessKey: 'Your AWS secretAccessKey', // optional
region: 'us-west-1', // required
applicationName:'gulp-elastic-beanstalk-deploy',
environmentName: 'gulp-elastic-beanstalk-deploy-env',
versionLabel: '1.0.0',
sourceBundle: './archive.zip',
description: 'description here'
}, cb);
eb({
profile: 'YOUR-IAM-USER', // optional
accessKeyId: 'YOUR-AWS-ACCESS-KEY-ID', // optional
secretAccessKey: 'YOUR-AWS-SECRET-ACCESS-KEY', // optional
region: 'YOUR-REGION', // required
applicationName:'my-eb-app',
environmentName: 'my-eb-env',
versionLabel: '1.0.0',
sourceBundle: './archive.zip',
description: 'Description here'
}, cb);
});

@@ -125,0 +132,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc