Skip to content

Commit bab8776

Browse files
committed
Merge pull request #52 from Rawbz/deploy_handler
Add handler option to lambda_deploy task
2 parents 0511fb4 + f181ee5 commit bab8776

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,16 @@ Depending on your Lambda function, you might need to increase the timeout value.
384384
If you wish to increase this timeout set the value here.
385385

386386
##### options.memory
387-
Type: `Integer`
388-
Default value: `null`
389-
Sets the memory assigned to the function. If null then the current setting for the function will be used. Value is in
390-
MB and must be a multiple of 64.
387+
Type: `Integer`
388+
Default value: `null`
389+
390+
Sets the memory assigned to the function. If null then the current setting for the function will be used. Value is in MB and must be a multiple of 64.
391+
392+
##### options.handler
393+
Type: `String`
394+
Default value: `null`
395+
396+
Sets the handler for your lambda function. If left null, the current setting will remain unchanged.
391397

392398
#### Usage Examples
393399

tasks/lambda_deploy.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ module.exports = function (grunt) {
3030
credentialsJSON: null,
3131
region: 'us-east-1',
3232
timeout: null,
33-
memory: null
33+
memory: null,
34+
handler: null
3435
});
3536

3637
if (options.profile !== null) {
@@ -103,6 +104,10 @@ module.exports = function (grunt) {
103104
configParams.MemorySize = options.memory;
104105
}
105106

107+
if (options.handler !== null) {
108+
configParams.Handler = options.handler;
109+
}
110+
106111
var updateConfig = function(func_name, func_options, callback) {
107112
if(Object.keys(func_options).length > 0) {
108113
func_options.FunctionName = func_name;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy