From 944eba1ee4af82784f7d2370269a74021e7264ad Mon Sep 17 00:00:00 2001 From: Robert Bagge Date: Tue, 10 May 2016 11:26:34 +0100 Subject: [PATCH] Added config.runtime as a param on deploy --- index.js | 3 ++- test/all.js | 1 + test/fake-lambda-service.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b608305..23ce3de 100644 --- a/index.js +++ b/index.js @@ -36,7 +36,8 @@ exports.deploy = function(codePackage, config, callback, logger, lambda) { Handler: config.handler, Role: config.role, Timeout: config.timeout, - MemorySize: config.memorySize + MemorySize: config.memorySize, + Runtime: config.runtime }; if (config.vpc) params.VpcConfig = config.vpc; var isPublish = (config.publish === true); diff --git a/test/all.js b/test/all.js index 90c634b..5da65bd 100644 --- a/test/all.js +++ b/test/all.js @@ -28,6 +28,7 @@ describe('node aws lambda module', function() { timeout: 10, memorySize: 128, publish: true, + runtime: 'nodejs', vpc: { SecurityGroupIds: ['sg-xxxxxxx1', 'sg-xxxxxxx2'], SubnetIds: ['subnet-xxxxxxxx'] diff --git a/test/fake-lambda-service.js b/test/fake-lambda-service.js index cee6a9e..5d0299e 100644 --- a/test/fake-lambda-service.js +++ b/test/fake-lambda-service.js @@ -154,7 +154,7 @@ module.exports = function() { updateFunctionConfiguration: function(params, callback) { validateParams(params, ['FunctionName'], - ['Description', 'Handler', 'MemorySize', 'Role', 'Timeout', 'VpcConfig'], + ['Description', 'Handler', 'MemorySize', 'Role', 'Timeout', 'VpcConfig', 'Runtime'], 'updateFunctionConfiguration') var fun = getFun(params.FunctionName);