fix deploy for custom runtimes

This commit is contained in:
Egor Kislitsyn 2016-03-17 22:50:21 +07:00
parent 599be5efb3
commit 32ae6ff989

View File

@ -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