diff --git a/src/config/supportedRuntimes.js b/src/config/supportedRuntimes.js index 882202537..f11d86fc9 100644 --- a/src/config/supportedRuntimes.js +++ b/src/config/supportedRuntimes.js @@ -25,6 +25,7 @@ export const supportedNodejs = new Set([ // supported 'nodejs10.x', 'nodejs12.x', + 'nodejs14.x', ]) // PROVIDED diff --git a/src/lambda/handler-runner/HandlerRunner.js b/src/lambda/handler-runner/HandlerRunner.js index 53c8e8f17..12f35c3b8 100644 --- a/src/lambda/handler-runner/HandlerRunner.js +++ b/src/lambda/handler-runner/HandlerRunner.js @@ -39,6 +39,14 @@ export default class HandlerRunner { debugLog(`Loading handler... (${handlerPath})`) if (useDocker) { + // https://github.com/lambci/docker-lambda/issues/329 + if (runtime === 'nodejs14.x') { + logWarning( + '"nodejs14.x" runtime is not supported with docker. See https://github.com/lambci/docker-lambda/issues/329', + ) + throw new Error('Unsupported runtime') + } + const dockerOptions = { host: this.#options.dockerHost, hostServicePath: this.#options.dockerHostServicePath,