From c03e2a87dde85f28dcf7ca6b98d97b084efcad8b Mon Sep 17 00:00:00 2001 From: Matt Mankins Date: Mon, 17 Oct 2016 18:46:12 -0400 Subject: [PATCH] add ability for functions to override runtime to have multi-language services --- lib/plugins/aws/deploy/compile/functions/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugins/aws/deploy/compile/functions/index.js b/lib/plugins/aws/deploy/compile/functions/index.js index bbdaf3fce..9fb6f1280 100644 --- a/lib/plugins/aws/deploy/compile/functions/index.js +++ b/lib/plugins/aws/deploy/compile/functions/index.js @@ -56,7 +56,8 @@ class AwsCompileFunctions { const Timeout = Number(functionObject.timeout) || Number(this.serverless.service.provider.timeout) || 6; - const Runtime = this.serverless.service.provider.runtime + const Runtime = functionObject.runtime + || this.serverless.service.provider.runtime || 'nodejs4.3'; newFunction.Properties.Handler = Handler;