Canonical list of AWS Lambda runtime identifiers and corresponding CPU architectures
npm install lambda-runtimesnpm i lambda-runtimes
``js`
// esm
import {
runtimes,
runtimeVersions,
runtimeList,
runtimesByArchitecture,
architecturesByRuntime,
aliases,
retiredRuntimes,
} from 'lambda-runtimes'
`js`
// cjs
let {
runtimes,
runtimeVersions,
runtimeList,
runtimesByArchitecture,
architecturesByRuntime,
aliases,
retiredRuntimes,
} = require('lambda-runtimes')
lambda-runtimes exports seven items:runtimes
- (object) - Lambda runtime strings, organized by runtime nameruntimes.node[0]
- Example: → nodejs20.xruntimes.node
- Where appropriate, each runtime may include (lowcase normalized) aliases, e.g. === runtimes.nodejs === runtimes.['node.js']runtimeVersions
- (object) - Semver representations of each Lambda runtimeruntimeVersions['nodejs20.x']
- Example: returns an object with major: '20', minor: null, patch: null, and wildcard: '20..' propertiesruntimeList
- (array) - list of all Lambda runtime strings (order not necessarily guaranteed)runtimesByArchitecture
- (object) - list of Lambda runtimes supported by each CPU architectureruntimesByArchitecture.arm64[0]
- Example: → nodejs20.x)architecturesByRuntime
- (object) - list of Lambda CPU architectures supported by each runtimearchitecturesByRuntime['nodejs20.x']
- Example: → [ 'arm64', 'x86_64' ])aliases
- (object) - shorthand or alternate names for runtime aliases (e.g. py for python)retiredRuntimes
- (object) - retired / EOL Lambda runtime strings, organized by runtime nameretiredRuntimes.node[0]
- Example: → nodejs10.x
Example:
`js``
{
runtimes: {
node: [ 'nodejs20.x', 'nodejs18.x' ],
...
},
runtimeVersions: {
'nodejs20.x': { major: '20', minor: null, patch: null, wildcard: '20..' },
...
},
runtimeList: [ 'nodejs20.x', 'nodejs18.x', ... ],
runtimesByArchitecture: {
arm64: [ 'nodejs20.x', 'nodejs18.x', ... ],
x86_64: [ 'nodejs20.x', 'nodejs18.x', ... ]
},
architecturesByRuntime: {
'nodejs20.x': [ 'arm64', 'x86_64' ],
'nodejs18.x': [ 'arm64', 'x86_64' ],
...
},
aliases: {
nodejs: 'node',
...
},
retiredRuntimes: {
node: [ 'nodejs10.x', ... ],
...
},
}
- AWS Lambda runtimes list
- AWS Lambda runtime support policy