Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lambda-runtimes

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-runtimes

Canonical list of AWS Lambda runtime identifiers and corresponding CPU architectures

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

AWS Lambda runtimes

A list of officially AWS Lambda runtimes organized by name

Installation

npm i lambda-runtimes

Usage

// esm
import {
  runtimes,
  runtimeList,
  runtimesByArchitecture,
  architecturesByRuntime,
  aliases,
  retiredRuntimes,
} from 'lambda-runtimes'
// cjs
let {
  runtimes,
  runtimeList,
  runtimesByArchitecture,
  architecturesByRuntime,
  aliases,
  retiredRuntimes,
} = require('lambda-runtimes')

lambda-runtimes exports five items:

  • runtimes (object) - Lambda runtime strings, organized by runtime name
    • Example: runtimes.node[0]nodejs14.x
    • Where appropriate, each runtime may include (lowcase normalized) aliases, e.g. runtimes.node === runtimes.nodejs === runtimes.['node.js']
  • 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]nodejs14.x)
  • architecturesByRuntime (object) - list of Lambda CPU architectures supported by each runtime
    • Example: architecturesByRuntime['nodejs14.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:

{
  runtimes: {
    node: [ 'nodejs14.x', 'nodejs12.x' ],
    ...
  },
  runtimeList: [ 'nodejs14.x', 'nodejs12.x', ... ],
  runtimesByArchitecture: {
    arm64: [ 'nodejs14.x', 'nodejs12.x', ... ],
    x86_64: [ 'nodejs14.x', 'nodejs12.x', ... ]
  },
  architecturesByRuntime: {
    'nodejs14.x': [ 'arm64', 'x86_64' ],
    'nodejs12.x': [ 'arm64', 'x86_64' ],
    ...
  },
  aliases: {
    nodejs: 'node',
    ...
  },
  retiredRuntimes: {
    node: [ 'nodejs10.x', ... ],
    ...
  },
}

Resources

  • AWS Lambda runtimes list
  • AWS Lambda runtime support policy

FAQs

Package last updated on 20 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc