Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/core/src/lambda/models/samLambdaRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export type RuntimePackageType = 'Image' | 'Zip'
// TODO: Consolidate all of the runtime constructs into a single <Runtime, Set<Runtime>> map
// We should be able to eliminate a fair amount of redundancy with that.
export const nodeJsRuntimes: ImmutableSet<Runtime> = ImmutableSet<Runtime>([
'nodejs22.x',
'nodejs20.x',
'nodejs18.x',
'nodejs16.x',
Expand Down Expand Up @@ -90,11 +91,11 @@ export const deprecatedRuntimes: ImmutableSet<Runtime> = ImmutableSet<Runtime>([
'ruby2.7',
])
const defaultRuntimes = ImmutableMap<RuntimeFamily, Runtime>([
[RuntimeFamily.NodeJS, 'nodejs20.x'],
[RuntimeFamily.Python, 'python3.12'],
[RuntimeFamily.DotNet, 'dotnet6'],
[RuntimeFamily.NodeJS, 'nodejs22.x'],
[RuntimeFamily.Python, 'python3.13'],
[RuntimeFamily.DotNet, 'dotnet8'],
[RuntimeFamily.Go, 'go1.x'],
[RuntimeFamily.Java, 'java17'],
[RuntimeFamily.Java, 'java21'],
[RuntimeFamily.Ruby, 'ruby3.3'],
])

Expand All @@ -109,6 +110,7 @@ export const samZipLambdaRuntimes: ImmutableSet<Runtime> = ImmutableSet.union([
export const samArmLambdaRuntimes: ImmutableSet<Runtime> = ImmutableSet<Runtime>([
'python3.9',
'python3.8',
'nodejs22.x',
'nodejs20.x',
'nodejs18.x',
'nodejs16.x',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ describe('runtimes', function () {
'nodejs16.x',
'nodejs18.x',
'nodejs20.x',
'nodejs22.x',
'python3.10',
'python3.11',
'python3.12',
Expand All @@ -86,6 +87,7 @@ describe('runtimes', function () {
'nodejs16.x',
'nodejs18.x',
'nodejs20.x',
'nodejs22.x',
'python3.10',
'python3.11',
'python3.12',
Expand All @@ -109,6 +111,7 @@ describe('runtimes', function () {
'nodejs16.x',
'nodejs18.x',
'nodejs20.x',
'nodejs22.x',
'python3.10',
'python3.11',
'python3.12',
Expand All @@ -131,6 +134,7 @@ describe('runtimes', function () {
'nodejs16.x',
'nodejs18.x',
'nodejs20.x',
'nodejs22.x',
'python3.10',
'python3.11',
'python3.12',
Expand Down
19 changes: 19 additions & 0 deletions packages/core/src/testInteg/sam.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ const scenarios: TestScenario[] = [
dependencyManager: 'npm',
vscodeMinimum: '1.50.0',
},
{
runtime: 'nodejs22.x',
displayName: 'nodejs22.x (ZIP)',
path: 'hello-world/app.mjs',
debugSessionType: 'pwa-node',
language: 'javascript',
dependencyManager: 'npm',
vscodeMinimum: '1.78.0',
},
{
runtime: 'python3.10',
displayName: 'python 3.10 (ZIP)',
Expand Down Expand Up @@ -188,6 +197,16 @@ const scenarios: TestScenario[] = [
dependencyManager: 'npm',
vscodeMinimum: '1.50.0',
},
{
runtime: 'nodejs22.x',
displayName: 'nodejs22.x (Image)',
baseImage: 'amazon/nodejs22.x-base',
path: 'hello-world/app.mjs',
debugSessionType: 'pwa-node',
language: 'javascript',
dependencyManager: 'npm',
vscodeMinimum: '1.78.0',
},
{
runtime: 'python3.10',
displayName: 'python 3.10 (ZIP)',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Feature",
"description": "nodejs22.x support for SAM and lambda"
}
4 changes: 2 additions & 2 deletions packages/toolkit/README.quickstart.cloud9.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ When you're satisfied with performance, you can [deploy your serverless applicat

The Toolkit _local SAM debugging_ feature supports these runtimes:

- JavaScript (Node.js 14.x, 16.x)
- Python (3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13)
- JavaScript (Node.js 16.x, Node.js 18.x, Node.js 20.x, Node.js 22.x,)
- Python (3.8, 3.9, 3.10, 3.11, 3.12, 3.13)

For more information see [Working with AWS Serverless Applications](https://docs.aws.amazon.com/cloud9/latest/user-guide/serverless-apps-toolkit.html) in the user guide.

Expand Down
Loading