Skip to content

Commit

Permalink
docs(lambda): explain NODEJS_LATEST better (#28171)
Browse files Browse the repository at this point in the history
Some confusion (including myself) surrounding what `NODEJS_LATEST` entails. So I'm clearing it up in this doc update. Basically, `NODEJS_LATEST` points to the latest nodejs region everywhere, and some regions lag behind when an official version is announced. So even though `NODEJS_20` exists, `NODEJS_LATEST` currently points to `NODEJS_18` until node20 has populated to all aws regions, including air-gapped regions.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
kaizencc authored Nov 28, 2023
1 parent f53faf6 commit f504ade
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/aws-cdk-lib/aws-lambda/lib/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ export class Runtime {
public static readonly NODEJS_20_X = new Runtime('nodejs20.x', RuntimeFamily.NODEJS, { supportsInlineCode: true });

/**
* The latest NodeJS version currently available
* The latest NodeJS version currently available in ALL regions (not necessarily the latest NodeJS version
* available in YOUR region).
*/
public static readonly NODEJS_LATEST = new Runtime('nodejs18.x', RuntimeFamily.NODEJS, { supportsInlineCode: true, isVariable: true });

Expand Down

0 comments on commit f504ade

Please sign in to comment.