grunt-aws-lambda
Advanced tools
Comparing version 0.8.0 to 0.9.0
{ | ||
"name": "grunt-aws-lambda", | ||
"description": "A grunt plugin to help develop AWS Lambda functions.", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"homepage": "https://github.com/Tim-B/grunt-aws-lambda", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -350,2 +350,8 @@ # grunt-aws-lambda | ||
##### options.region | ||
Type: `String` | ||
Default value: `us-east-1` | ||
Specify the AWS region your functions will be uploaded to. Note that if an ARN is supplied this option is not required. | ||
##### options.timeout | ||
@@ -501,2 +507,5 @@ Type: `Integer` | ||
### 0.9.0 | ||
* Parsing region automatically from ARN - [pull request by jvwing](https://github.com/Tim-B/grunt-aws-lambda/pull/25) | ||
@@ -16,4 +16,4 @@ /* | ||
var AWS = require('aws-sdk'); | ||
var arnParser = require('../utils/arn_parser'); | ||
// Please see the Grunt documentation for more information regarding task | ||
@@ -48,2 +48,6 @@ // creation: http://gruntjs.com/creating-tasks | ||
deploy_function = deploy_arn; | ||
var functionInfo = arnParser.parse(deploy_arn); | ||
if (functionInfo && functionInfo.region) { | ||
options.region = functionInfo.region; | ||
} | ||
} | ||
@@ -95,3 +99,3 @@ | ||
} | ||
} | ||
}; | ||
@@ -108,3 +112,3 @@ grunt.log.writeln('Uploading...'); | ||
ZipFile: data | ||
} | ||
}; | ||
@@ -111,0 +115,0 @@ lambda.updateFunctionCode(codeParams, function (err, data) { |
38980
28
582
510