Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lambda: Node 22 #31964

Closed
2 tasks
w3nl opened this issue Oct 31, 2024 · 6 comments
Closed
2 tasks

lambda: Node 22 #31964

w3nl opened this issue Oct 31, 2024 · 6 comments
Labels
@aws-cdk/aws-lambda Related to AWS Lambda effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p2

Comments

@w3nl
Copy link

w3nl commented Oct 31, 2024

Describe the feature

Node 22 is now the active LTS version.
Node 20 is already is already in maintenance mode.
Node 18 is still in maintenance mode, but will end-of-life in 6 months.
https://github.com/nodejs/Release

So I hope I can upgrade soon my AWS lambda functions also to Node 22.

Use Case

import { Runtime } from 'aws-cdk-lib/aws-lambda'
import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs'

new NodejsFunction(this, 'Example', {
    runtime: Runtime.NODEJS_22_X
})

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.162.1

Environment details (OS name and version, etc.)

Ubuntu 24.04

@w3nl w3nl added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Oct 31, 2024
@github-actions github-actions bot added the aws-cdk-lib Related to the aws-cdk-lib package label Oct 31, 2024
@ashishdhingra
Copy link
Contributor

Node.js 22 runtime support is yet to be supported by Lambda:

Screenshot 2024-10-31 at 2 26 11 PM

Also refer AWS Lambda > Supported runtimes.

This feature request for CDK could be implemented once Lambda supports Node.js 22.x runtime.

@ashishdhingra ashishdhingra changed the title aws-cdk-lib: Node 22 lambda: Node 22 Oct 31, 2024
@github-actions github-actions bot added the @aws-cdk/aws-lambda Related to AWS Lambda label Oct 31, 2024
@ashishdhingra ashishdhingra added p2 effort/small Small work item – less than a day of effort needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. and removed aws-cdk-lib Related to the aws-cdk-lib package needs-triage This issue or PR still needs to be triaged. labels Oct 31, 2024
@JamesKyburz
Copy link

Lambda always release the Node.js runtime after the Node.js project releases a new LTS version, hopefully it be released soon.

The EOL is also extended in AWS compared with that of Node.js, it starts 3 months after the Node.js EOL and is documented here

@JamesKyburz
Copy link

Any day now :)

@joergbaier
Copy link

Seems to be in the works, they started publishing nodejs:22 images 2 days ago
https://gallery.ecr.aws/lambda/nodejs

@Tietew
Copy link
Contributor

Tietew commented Nov 21, 2024

v2.168.0 has released including NodeJS 22.x support #32104

@w3nl w3nl closed this as completed Nov 21, 2024
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@aws-cdk/aws-lambda Related to AWS Lambda effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p2
Projects
None yet
Development

No branches or pull requests

5 participants