File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
nodejs/sample-apps/aws-sdk/deploy/wrapper Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ package: build
4747
4848.PHONY : publish
4949publish :
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
5353publish-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
Original file line number Diff line number Diff 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-
Original file line number Diff line number Diff 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+
You can’t perform that action at this time.
0 commit comments