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;