UNPKG

serverless-offline-reasint

Version:

Emulate AWS λ and API Gateway locally when developing your Serverless project

57 lines (47 loc) 1.17 kB
// native runtime support for AWS // https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html // .NET CORE // export const supportedDotnetcore = new Set([ // 'dotnet6', // ]) // GO export const supportedGo = new Set(["go1.x"]) // JAVA export const supportedJava = new Set(["java8", "java8.al2", "java11", "java17"]) // NODE.JS export const supportedNodejs = new Set([ "nodejs14.x", "nodejs16.x", "nodejs18.x", "nodejs20.x", ]) // PROVIDED export const supportedProvided = new Set(["provided", "provided.al2"]) // PYTHON export const supportedPython = new Set([ "python3.7", "python3.8", "python3.9", "python3.10", "python3.11", ]) // RUBY export const supportedRuby = new Set(["ruby2.7", "ruby3.2"]) // deprecated runtimes // https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html export const supportedRuntimes = new Set([ // ...supportedDotnetcore, ...supportedGo, ...supportedJava, ...supportedNodejs, ...supportedProvided, ...supportedPython, ...supportedRuby, ]) export const unsupportedDockerRuntimes = new Set([ "nodejs14.x", "nodejs16.x", "nodejs18.x", "nodejs20.x", "python3.9", ])