add ability for functions to override runtime to have multi-language services

This commit is contained in:
Matt Mankins 2016-10-17 18:46:12 -04:00
parent 8a68bb684f
commit c03e2a87dd

View File

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