New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

gulp-lambda-deploy

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-lambda-deploy - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

@@ -143,3 +143,3 @@ 'use strict';

// 'updateFunctionConfiguration' since only this update
// function takes Publish as a param. This should
// function takes Publish as a param. This should
// always be called AFTER 'updateFunctionConfiguration'

@@ -184,2 +184,9 @@ // so that the updated function is properly published,

if (params.subnets && params.securityGroups) {
lamparams.VpcConfig = {
SubnetIds: typeof params.subnets === 'string'? [params.subnets] : params.subnets,
SecurityGroupIds: typeof params.securityGroups === 'string' ? [params.securityGroups] : params.securityGroups,
};
}
return new Promise(function(resolve, reject) {

@@ -218,2 +225,9 @@ lambda.updateFunctionConfiguration(lamparams, function(err, data) {

if (params.subnets && params.securityGroups) {
lamparams.VpcConfig = {
SubnetIds: typeof params.subnets === 'string' ? [params.subnets] : params.subnets,
SecurityGroupIds: typeof params.securityGroups === 'string' ? [params.securityGroups] : params.securityGroups,
};
}
return new Promise(function(resolve, reject) {

@@ -284,2 +298,2 @@ lambda.createFunction(lamparams, function(err, data) {

});
}
}
{
"name": "gulp-lambda-deploy",
"version": "0.2.0",
"version": "0.3.0",
"description": "Gulp plugin to deploy zipped packages to AWS Lambda directly or via S3",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -28,3 +28,5 @@ # gulp-lambda-deploy

key: '...'
}
},
subnets: [..., ...],
securityGroups: '...'
};

@@ -97,2 +99,8 @@

#### `subnets`
The ids of subnets to create the Lambda function into, if you want to create it in a VPC (a string or an array of strings).
#### `securityGroups`
The security groups to add to the Lambda function if created in a VPC (a string or an array of strings).
### `options`

@@ -106,2 +114,2 @@

#### `region` (required)
The AWS region your resources will be located in.
The AWS region your resources will be located in.