aws-codebuild-docker-images icon indicating copy to clipboard operation
aws-codebuild-docker-images copied to clipboard

Feature request: Add NodeJS 24 support - CodeBuild

Open rgoltz opened this issue 2 months ago • 10 comments

Please add support for nodejs (Node.js) runtime version 24 for at minimum standard+ amazonlinux images - Here is an overview: https://blog.logrocket.com/node-js-24-new/

Please mind that Node.js 24 in Lambda is already in preview: https://github.com/aws/aws-lambda-base-images/issues/325 and AL2023 has this on the agenda as well: https://github.com/amazonlinux/amazon-linux-2023/issues/1000 Based on use-cases, it would be great if the support could be scheduled together (more or less) - This enable us to use different AWS services smoothly together.

rgoltz avatar Oct 07 '25 17:10 rgoltz

This would be great please.... why are the codebuild/AL images not getting new versions very frequently?

jpduckwo avatar Nov 17 '25 05:11 jpduckwo

Looks like aws-sam-cli 1.147.1 now supports nodejs24.

Not seeing nodejs24 in Lambda in the AWS Management Console yet, but I presume it must be coming soon to that.

mdgm88 avatar Nov 20 '25 21:11 mdgm88

https://aws-news.com/article/2025-11-25-aws-lambda-adds-support-for-nodejs-24

tenjaa avatar Nov 26 '25 07:11 tenjaa

We can run node v24 but we can't build with it 🤔

jpduckwo avatar Nov 26 '25 23:11 jpduckwo

At the moment as well as installing node, I run pip install --upgrade aws-sam-cli to update aws-sam-cli to a version compatible with deploying nodej24 lambdas.

Build times would be a lot better if nodejs24 and updated aws-sam-cli were included in the image

mdgm88 avatar Nov 27 '25 00:11 mdgm88

The lack of action on this repo is making us seriously considering moving to an alternative CI solution. Have a look at the amount of commits over the the last year, plus the amount of issues requesting updated build tool versions. Updating the image at run time unfortunately means longer build times and more cost. There is a misalignment of interest here.

jpduckwo avatar Dec 04 '25 03:12 jpduckwo

I just created a support case in the AWS console hoping this will ping them.

HaaLeo avatar Dec 04 '25 18:12 HaaLeo

With the latest CodeBuild runner images, aws/codebuild/standard:7.0 for example, nodejs 24 is pre-installed, but has not officially appeared in documentation https://docs.aws.amazon.com/codebuild/latest/userguide/available-runtimes.html

From this PR https://github.com/aws/aws-codebuild-docker-images/pull/792

In your buildspec file, you would be able to add a command n 24 to switch over to use the nodejs 24 runtime, but as stated earlier, means longer build times.

However, there's been a lot of compatibility issues discussed in https://github.com/npm/cli/issues where running npm ci with npm v11 is not able to correctly read package-lock.json lockfiles that were created from older versions of npm.

Filed an issue in this repo https://github.com/aws/aws-codebuild-docker-images/issues/800 for the npm v11 issue. It feels like the cited PR was merged without a lot of oversight and QA.

peter-at-work avatar Dec 05 '25 01:12 peter-at-work

I am not seeing node 24 pre-installed in the AL2023 ARM codebuild image. It looks like it hasn't been added to that one yet.

mdgm88 avatar Dec 05 '25 02:12 mdgm88

Any update on this? Thanks

sohailalam2 avatar Dec 05 '25 21:12 sohailalam2