runtime
RequiredLambda runtime identifier
Example
runtime = python3.9Supported Runtimes
| Runtime | Identifier | Notes |
|---|---|---|
| Python 3.12 | python3.12 | Latest Python |
| Python 3.11 | python3.11 | |
| Python 3.10 | python3.10 | |
| Python 3.9 | python3.9 | |
| Node.js 20 | nodejs20.x | Latest Node.js |
| Node.js 18 | nodejs18.x | |
| Java 21 | java21 | Latest Java |
| Java 17 | java17 | |
| .NET 8 | dotnet8 | |
| Go | provided.al2023 | Custom runtime |
| Rust | provided.al2023 | Custom 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
}