-
Notifications
You must be signed in to change notification settings - Fork 978
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
Please Add Support for NodeJS 16 #490
Comments
👍 workaround phases:
install:
runtime-versions:
nodejs: 14
commands:
- n 16 |
- CodeCompile still uses node 14.17.2 - Fix to get nodejs 16 aws/aws-codebuild-docker-images#490 and here https://stackoverflow.com/questions/66590492/aws-codebuild-tsc-error-ts2307-cannot-find-module
If the images use version managers under the hood, why limit the number of available runtime versions to a static set? Couldn't these images just be updated to pass specific versions on to the underlying version managers? I imagine this could even be backwards compatible with the existing implementation and require a lot less ongoing maintenance of this repository. And a lot fewer workarounds from CodeBuild users. Specific versions like this would pass straight thru to the nodejs
and the image could still provide "supported" versions like 12, 14, 16:
|
per aws/aws-codebuild-docker-images#490 (comment) error: [Container] 2022/02/10 04:49:30 Phase context status code: YAML_FILE_ERROR Message: Unknown runtime version named '16' of nodejs. This build image has the following versions: 12, 14
(note, available images only supports node12 & 14, but you can ovveride it with a command per aws/aws-codebuild-docker-images#490 (comment) ) from fez-frontend: error: [Container] 2022/02/10 04:49:30 Phase context status code: YAML_FILE_ERROR Message: Unknown runtime version named '16' of nodejs. This build image has the following versions: 12, 14
Just wanted to chime in and mention that I was able to use @koooge workaround to install a specific version of Node.js using CDK. You can see the relevant code in my template repo. Thank you! |
waiting for support nodejs version 17 |
bump! 16 has been in LTS for a while now... |
Bump. Would be really good to have this... |
They're getting closer, it seems. NodeJS 16 runtime is now supported for Lambdas. However, it is not yet available for codebuild. |
FYI, this seems to work now. docs still not updated but I tried it just now:
Edit: don't recommend this yet. it only works sometimes and seems to be random chance if the build server supports it yet or not |
Using a version manager isn't a viable solution to picking a version.
AMI2022 isn't supported on codebuild. AMI2 is dead along with CentOS. Ubuntu images do not have latest software available even a year after it's been released. Please support your own products. |
So it seems that it isn't exactly fully rolled out. Very unfortunate it's only intermittently working, builds should be reproducible. |
I also get Is there some way to clear the pool of build machines we're using and just get ones that support Node 16? |
Tried in region ap-southeast-2... |
Yesterday morning it was available. At night and now it is not. Looks like they are having some issues updating the version. |
Finally... it's good to know that they are working on it! I was checking https://docs.aws.amazon.com/codebuild/latest/userguide/available-runtimes.html#linux-runtimes every week to see if it's available. |
|
+1. It's a nice feature because Node 12 will go EOF at April 2022. AWS Lambda already have Node 16 available. |
This is pressing. We went through the deal of upgrading lambdas to 16 and we use codebuild to build our lambdas. Hope there's a fix soon. |
This workaround works well and does not add a lot of time to the build process. |
nodejs: latest is defaulting back to v12.22.2 again. It was pulling 14+ for the last few months. |
I'm sceptical :) What region, and what is your build config? |
having same issue for few days.
region: Singapore |
It'd be great if codebuild could commit to getting the next LTS of node out earlier, like Lambda has (almost) promised.
https://aws.amazon.com/blogs/compute/node-js-16-x-runtime-now-available-in-aws-lambda/ |
After buildspec completes, the AWS Lambda displays Runtime |
The production images built from this repo are referenced in the AWS CDK as, a new version of the AWS CDK was released today that has broken CDK pipelines because it was not tested against Node 12 (or because Node 14 and/or 16 are not included in these images, depending your perspective). Please release newer images with more recent, production-ready versions of NodeJS as soon as possible, thanks. |
us-east-1:
|
Thanks for getting this out. However, the documentation still says nodejs 14 is the latest available: Also, anyone using CDK will have to wait just a little longer, if they don't want to use workarounds: aws/aws-cdk#20960 |
Nope. I moved back to Node 14 in standard5:0. This is not reliable yet.
What's up with AWS seriously?
…On Thu, Sep 1, 2022 at 1:40 PM nandita121189 ***@***.***> wrote:
I'm still getting the below error
Phase context status code: YAML_FILE_ERROR Message: Unknown runtime version named '16' of nodejs. This build image has the following versions: 10, 12
The environment used for codebuild is as follows:
Environment:
Type: LINUX_CONTAINER
Image: aws/codebuild/standard:6.0
ComputeType: BUILD_GENERAL1_SMALL
Buildspec versions needed
install:
runtime-versions:
python: 3.8
nodejs: 16
Region is us-west-2
Is it working for someone?
—
Reply to this email directly, view it on GitHub
<#490 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFYVLDNKG7SSLK57JE3G43DV4BQIPANCNFSM5G3KBAEQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
We are using node16 in the "*us-east-1*" region. The attached AWS article
indicates it's available in all regions.
*cloudformation template*
Type: LINUX_CONTAINER
Image: aws/codebuild/standard:6.0
ComputeType: BUILD_GENERAL1_SMALL
*serverless.yml*
provider:
name: aws
runtime: nodejs16.x
An alternative is to use a custom Image that you build yourself. We used a
private ECR Image with node16 prior to this option being available.
*helpful articles*
https://aws.amazon.com/about-aws/whats-new/2022/05/aws-lambda-adds-support-node-js-16/
https://docs.aws.amazon.com/lambda/latest/dg/nodejs-image.html
On Thu, Sep 1, 2022 at 7:32 AM Mahesh Samudra ***@***.***>
wrote:
… Nope. I moved back to Node 14 in standard5:0. This is not reliable yet.
What's up with AWS seriously?
On Thu, Sep 1, 2022 at 1:40 PM nandita121189 ***@***.***>
wrote:
> I'm still getting the below error
>
> Phase context status code: YAML_FILE_ERROR Message: Unknown runtime
version named '16' of nodejs. This build image has the following versions:
10, 12
>
> The environment used for codebuild is as follows:
>
> Environment:
> Type: LINUX_CONTAINER
> Image: aws/codebuild/standard:6.0
> ComputeType: BUILD_GENERAL1_SMALL
>
> Buildspec versions needed
>
>
> install:
> runtime-versions:
> python: 3.8
> nodejs: 16
>
> Region is us-west-2
>
> Is it working for someone?
>
> —
> Reply to this email directly, view it on GitHub
> <
#490 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AFYVLDNKG7SSLK57JE3G43DV4BQIPANCNFSM5G3KBAEQ
>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#490 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACFLO27VIKOUGQCWWY3SWTTV4C47BANCNFSM5G3KBAEQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It seems that the aarch64 containers only support up to 12, which really should be updated by now. |
I resolved this issue by updating the CodeBuild Linux image from the default 5.0 to 6.0. E.g. with TypeScript & AWS CDK:
|
Year later it is still not supported? |
Supported #490 (comment) |
I mean |
The available runtimes are listed in the definition of the docker images provided by CodeBuild https://docs.aws.amazon.com/en_us/codebuild/latest/userguide/build-env-ref-available.html For instance
|
@koooge wrote:
In case it's not clear, this same technique can be used to install nodejs 18 on phases:
install:
runtime-versions:
nodejs: 14
commands:
- n 18 |
NodeJS 16 entered active long-term support very recently. Can you please add this runtime to the codebuild images?
The text was updated successfully, but these errors were encountered: