From 32ae6ff989cf16ecb34616ccbe41abb798338f10 Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Thu, 17 Mar 2016 22:50:21 +0700 Subject: [PATCH] fix deploy for custom runtimes --- lib/actions/CodeDeployLambda.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/actions/CodeDeployLambda.js b/lib/actions/CodeDeployLambda.js index 5597b201b..2cb22196c 100644 --- a/lib/actions/CodeDeployLambda.js +++ b/lib/actions/CodeDeployLambda.js @@ -170,7 +170,7 @@ module.exports = function(S) { FunctionName: _this.functionName, /* required */ Handler: _this.function.getRuntime().getHandler(_this.function), /* required */ Role: _this.functionPopulated.customRole ? _this.functionPopulated.customRole : _this.project.getVariablesObject(_this.evt.options.stage, _this.evt.options.region).iamRoleArnLambda, /* required */ - Runtime: _this.function.getRuntime().getName(), /* required */ + Runtime: _this.function.getRuntime().getName('aws'), /* required */ Description: 'Serverless Lambda function for project: ' + _this.project.name, MemorySize: _this.functionPopulated.memorySize, Publish: true, // Required by Serverless Framework & recommended best practice by AWS