diff --git a/README.md b/README.md index c2a78db..d6981b2 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ inputs: memory: 512 # (optional) lambda memory size. timeout: 10 # (optional) lambda timeout. description: My Lambda. # (optional) lambda description. + runtime: 'nodejs14.x' # (optional) lambda runtime env: # (optional) env vars. FOO: BAR roleName: plain-name # (optional) custom role name. diff --git a/src/utils.js b/src/utils.js index 4f34f67..ded4fda 100644 --- a/src/utils.js +++ b/src/utils.js @@ -55,7 +55,7 @@ const prepareInputs = (inputs, instance) => { timeout: inputs.timeout || 10, src: inputs.src || null, handler: inputs.handler || 'handler.handler', - runtime: 'nodejs12.x', + runtime: inputs.runtime || 'nodejs14.x', env: inputs.env || {}, region: inputs.region || 'us-east-1', layers: inputs.layers || [],