Skip to content

Commit 6a8b279

Browse files
authored
NodeJS runtime support for nodejs22.x (#1644)
1 parent b58ee4c commit 6a8b279

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.github/workflows/release-layer-nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
layer-name: opentelemetry-nodejs
8888
component-version: ${{needs.build-layer.outputs.NODEJS_VERSION}}
8989
# architecture:
90-
runtimes: nodejs18.x nodejs20.x
90+
runtimes: nodejs18.x nodejs20.x nodejs22.x
9191
release-group: prod
9292
aws_region: ${{ matrix.aws_region }}
9393
secrets: inherit

collector/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ package: build
4747

4848
.PHONY: publish
4949
publish:
50-
aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(GOARCH).zip --compatible-runtimes nodejs14.x nodejs16.x nodejs18.x java11 python3.8 python3.9 python3.10 python3.11 python3.12 --query 'LayerVersionArn' --output text
50+
aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(GOARCH).zip --compatible-runtimes nodejs16.x nodejs18.x nodejs20.x nodejs22.x java11 python3.8 python3.9 python3.10 python3.11 python3.12 --query 'LayerVersionArn' --output text
5151

5252
.PHONY: publish-layer
5353
publish-layer: package
5454
@echo Publishing collector extension layer...
55-
aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(GOARCH).zip --compatible-runtimes nodejs14.x nodejs16.x nodejs18.x java11 python3.8 python3.9 python3.10 python3.11 python3.12 --query 'LayerVersionArn' --output text
55+
aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(GOARCH).zip --compatible-runtimes nodejs16.x nodejs18.x nodejs20.x nodejs22.x java11 python3.8 python3.9 python3.10 python3.11 python3.12 --query 'LayerVersionArn' --output text
5656
@echo OpenTelemetry Collector layer published.
5757

5858
.PHONY: set-otelcol-version

nodejs/sample-apps/aws-sdk/deploy/wrapper/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module "hello-lambda-function" {
55
architectures = compact([var.architecture])
66
function_name = var.name
77
handler = "index.handler"
8-
runtime = "nodejs16.x"
8+
runtime = var.runtime
99

1010
create_package = false
1111
local_existing_package = "${path.module}/../../build/function.zip"
@@ -51,4 +51,3 @@ module "api-gateway" {
5151
function_invoke_arn = module.hello-lambda-function.lambda_function_invoke_arn
5252
enable_xray_tracing = var.tracing_mode == "Active"
5353
}
54-

nodejs/sample-apps/aws-sdk/deploy/wrapper/variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@ variable "architecture" {
2727
description = "Lambda function architecture, valid values are arm64 or x86_64"
2828
default = "x86_64"
2929
}
30+
31+
variable "runtime" {
32+
type = string
33+
description = "NodeJS runtime version used for sample Lambda Function"
34+
default = "nodejs18.x"
35+
}
36+

0 commit comments

Comments
 (0)