# lambda-runtimes

> Canonical list of AWS Lambda runtime identifiers and corresponding CPU architectures

Latest version **3.0.1** (published 2025-12-24) · Apache-2.0 license · 479.0K weekly downloads

## Install

```sh
npm install lambda-runtimes
pnpm add lambda-runtimes
yarn add lambda-runtimes
bun add lambda-runtimes
```

## Health

**Score 70/100 (B)** — status: stable.

Positive: moderate downloads; esm support; no vulnerabilities; has provenance.

Warnings: no types.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2025-12-24 |
| First published | 2021-10-14 |
| Weekly downloads | 479.0K |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 0 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 4 |
| Maintainers | filmaj, ryanblock, architectci |

## Links

- npm: https://www.npmjs.com/package/lambda-runtimes
- Repository: https://github.com/architect/lambda-runtimes
- Homepage: https://github.com/architect/lambda-runtimes#readme
- Issues: https://github.com/architect/lambda-runtimes/issues
- npm.io page: https://npm.io/package/lambda-runtimes

## Recent versions

- 3.0.1 (latest) — 2025-12-24
- 3.0.0 — 2025-12-03
- 2.0.5 — 2025-01-17
- 2.0.4 — 2025-01-17
- 2.0.3 — 2024-12-04
- 2.0.2 — 2024-02-16
- 2.0.1 — 2024-02-02
- 2.0.0 — 2024-01-24
- 1.1.7 — 2023-12-13
- 1.1.6 — 2023-11-16
- 1.1.5 — 2023-08-21
- 1.1.4 — 2023-04-06
- 1.1.3 — 2022-11-22
- 1.1.2 — 2022-05-09
- 1.1.1 — 2021-11-17
- … 7 more at https://npm.io/package/lambda-runtimes/versions

## README

# AWS Lambda runtimes

## A list of officially AWS Lambda runtimes organized by name

### Installation

`npm i lambda-runtimes`

### Usage

```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 name
  - Example: `runtimes.node[0]` → `nodejs20.x`
  - Where appropriate, each runtime may include (lowcase normalized) aliases, e.g. `runtimes.node` === `runtimes.nodejs` === `runtimes.['node.js']`
- **`runtimeVersions`** (object) - Semver representations of each Lambda runtime
  - Example: `runtimeVersions['nodejs20.x']` returns an object with `major: '20'`, `minor: null`, `patch: null`, and `wildcard: '20.*.*'` properties
- **`runtimeList`** (array) - list of all Lambda runtime strings (order not necessarily guaranteed)
- **`runtimesByArchitecture`** (object) - list of Lambda runtimes supported by each CPU architecture
  - Example: `runtimesByArchitecture.arm64[0]` → `nodejs20.x`)
- **`architecturesByRuntime`** (object) - list of Lambda CPU architectures supported by each runtime
  - Example: `architecturesByRuntime['nodejs20.x']` → `[ '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 name
  - Example: `retiredRuntimes.node[0]` → `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', ... ],
    ...
  },
}
```

### Resources

- [AWS Lambda runtimes list](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html)
- [AWS Lambda runtime support policy](https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html)

---
_Source: https://npm.io/package/lambda-runtimes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
