runtime

Required
Type string

Lambda runtime identifier

Example

runtime = python3.9

Supported Runtimes

RuntimeIdentifierNotes
Python 3.12python3.12Latest Python
Python 3.11python3.11
Python 3.10python3.10
Python 3.9python3.9
Node.js 20nodejs20.xLatest Node.js
Node.js 18nodejs18.x
Java 21java21Latest Java
Java 17java17
.NET 8dotnet8
Goprovided.al2023Custom runtime
Rustprovided.al2023Custom runtime

Best Practices

  • Use the latest stable runtime for new functions
  • Plan runtime upgrades before deprecation dates
  • Test thoroughly when upgrading runtimes
  • Use custom runtime (provided.al2023) for unsupported languages

Full Module Example

module "lambda_function" {
  source  = "registry.patterneddesigns.ca/patterneddesigns/lambda-function/aws"
  version = "0.1.0"

  # runtime
  runtime = python3.9

  # Other required inputs
  function_name = my-resource
  handler = example-value
  source_path = /path/to/resource
}