From e4cc886040a775ba6d99c21117ddbafeb5d2edb7 Mon Sep 17 00:00:00 2001 From: David Levy Date: Fri, 19 Jul 2024 14:00:39 +0900 Subject: [PATCH 1/4] Add `provided.al2` to supported runtimes. (#457) --- README.md | 1 + package.json | 2 +- src/index.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6654517..61ec03f 100644 --- a/README.md +++ b/README.md @@ -375,6 +375,7 @@ This plugin currently supports the following AWS runtimes: - java11 - java17 - java21 +- provided.al2 ## Contributing diff --git a/package.json b/package.json index 2844932..ff5a6b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serverless-newrelic-lambda-layers", - "version": "5.3.0", + "version": "5.3.1", "description": "Serverless plugin for NewRelic APM AWS Lambda layers.", "main": "dist/index.js", "files": [ diff --git a/src/index.ts b/src/index.ts index 60ccd10..56f5f33 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,6 +35,7 @@ const wrappableRuntimeList = [ "dotnet6", "dotnet7", "dotnet8", + "provided.al2", ]; export default class NewRelicLambdaLayerPlugin { From 9d9b6aca3d0b38472249ca27b893c51f755b4e4a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 24 Jul 2024 19:51:56 +0530 Subject: [PATCH 2/4] chore: release v5.4.0 (#458) Signed-off-by: mrickard Co-authored-by: mrickard --- CHANGELOG.md | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- tests/fixtures/arm64.output.service.json | 4 ++-- tests/fixtures/debug-log-level.output.service.json | 4 ++-- tests/fixtures/debug.output.service.json | 4 ++-- .../distributed-tracing-enabled.output.service.json | 4 ++-- tests/fixtures/eu.output.service.json | 4 ++-- tests/fixtures/function-has-layers.output.service.json | 4 ++-- tests/fixtures/include.output.service.json | 2 +- .../includes-all-provider-layer.output.service.json | 2 +- .../fixtures/lambda-extension-disabled.output.service.json | 4 ++-- tests/fixtures/lambda-extension-enabled.output.service.json | 4 ++-- .../license-key-secret-disabled.output.service.json | 4 ++-- tests/fixtures/log-disabled.output.service.json | 4 ++-- .../log-ingestion-via-extension.output.service.json | 4 ++-- tests/fixtures/log-level.output.service.json | 4 ++-- tests/fixtures/manual-wrapping.output.service.json | 2 +- tests/fixtures/node-versions.output.service.json | 6 +++--- .../provider-environment-log-level.output.service.json | 4 ++-- tests/fixtures/provider-environment.output.service.json | 4 ++-- tests/fixtures/provider-layer.output.service.json | 2 +- tests/fixtures/proxy.output.service.json | 4 ++-- tests/fixtures/stage-included.output.service.json | 4 ++-- .../trusted-account-key-excluded.output.service.json | 4 ++-- .../trusted-account-key-included.output.service.json | 4 ++-- 26 files changed, 48 insertions(+), 46 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 748af4a..a7c0300 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +### v5.4.0 (2024-07-24) + ### v5.3.0 (2024-06-12) #### Features diff --git a/package-lock.json b/package-lock.json index de46047..ab016ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "serverless-newrelic-lambda-layers", - "version": "5.3.0", + "version": "5.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "serverless-newrelic-lambda-layers", - "version": "5.3.0", + "version": "5.4.0", "license": "Apache-2.0", "devDependencies": { "@types/fs-extra": "^9.0.13", diff --git a/package.json b/package.json index ff5a6b1..6be6491 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serverless-newrelic-lambda-layers", - "version": "5.3.1", + "version": "5.4.0", "description": "Serverless plugin for NewRelic APM AWS Lambda layers.", "main": "dist/index.js", "files": [ diff --git a/tests/fixtures/arm64.output.service.json b/tests/fixtures/arm64.output.service.json index 9ec8699..a332e37 100644 --- a/tests/fixtures/arm64.output.service.json +++ b/tests/fixtures/arm64.output.service.json @@ -24,7 +24,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16XARM64:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16XARM64:103" ], "package": { "exclude": [ @@ -52,7 +52,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:78" ], "package": { "exclude": [ diff --git a/tests/fixtures/debug-log-level.output.service.json b/tests/fixtures/debug-log-level.output.service.json index e6d2b5d..d075bc5 100644 --- a/tests/fixtures/debug-log-level.output.service.json +++ b/tests/fixtures/debug-log-level.output.service.json @@ -32,7 +32,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -54,7 +54,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/debug.output.service.json b/tests/fixtures/debug.output.service.json index 0349f0f..fd3c258 100644 --- a/tests/fixtures/debug.output.service.json +++ b/tests/fixtures/debug.output.service.json @@ -31,7 +31,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -53,7 +53,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/distributed-tracing-enabled.output.service.json b/tests/fixtures/distributed-tracing-enabled.output.service.json index d8a5ae5..8bf1bbf 100644 --- a/tests/fixtures/distributed-tracing-enabled.output.service.json +++ b/tests/fixtures/distributed-tracing-enabled.output.service.json @@ -26,7 +26,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -50,7 +50,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/eu.output.service.json b/tests/fixtures/eu.output.service.json index aae288e..732c720 100644 --- a/tests/fixtures/eu.output.service.json +++ b/tests/fixtures/eu.output.service.json @@ -29,7 +29,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -55,7 +55,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/function-has-layers.output.service.json b/tests/fixtures/function-has-layers.output.service.json index ce61e04..b7a37a3 100644 --- a/tests/fixtures/function-has-layers.output.service.json +++ b/tests/fixtures/function-has-layers.output.service.json @@ -2,7 +2,7 @@ "service": "newrelic-lambda-layers-nodejs-example", "provider": { "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "name": "aws", "stage": "prod", @@ -46,7 +46,7 @@ "runtime": "nodejs18.x", "layers": [ "arn:aws:lambda:us-east-1:123456789012:layer:SomeOtherLayer:1", - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ] }, "layer-nodejs18x2": { diff --git a/tests/fixtures/include.output.service.json b/tests/fixtures/include.output.service.json index 21e40c0..3754611 100644 --- a/tests/fixtures/include.output.service.json +++ b/tests/fixtures/include.output.service.json @@ -43,7 +43,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": [ "./**", diff --git a/tests/fixtures/includes-all-provider-layer.output.service.json b/tests/fixtures/includes-all-provider-layer.output.service.json index a5b0cce..a50f598 100644 --- a/tests/fixtures/includes-all-provider-layer.output.service.json +++ b/tests/fixtures/includes-all-provider-layer.output.service.json @@ -2,7 +2,7 @@ "service": "newrelic-lambda-layers-nodejs-example", "provider": { "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "name": "aws", "stage": "prod", diff --git a/tests/fixtures/lambda-extension-disabled.output.service.json b/tests/fixtures/lambda-extension-disabled.output.service.json index c148758..ffc3797 100644 --- a/tests/fixtures/lambda-extension-disabled.output.service.json +++ b/tests/fixtures/lambda-extension-disabled.output.service.json @@ -25,7 +25,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -49,7 +49,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/lambda-extension-enabled.output.service.json b/tests/fixtures/lambda-extension-enabled.output.service.json index c9e38e6..882050f 100644 --- a/tests/fixtures/lambda-extension-enabled.output.service.json +++ b/tests/fixtures/lambda-extension-enabled.output.service.json @@ -24,7 +24,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -47,7 +47,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/license-key-secret-disabled.output.service.json b/tests/fixtures/license-key-secret-disabled.output.service.json index f9ecf52..41c25bc 100644 --- a/tests/fixtures/license-key-secret-disabled.output.service.json +++ b/tests/fixtures/license-key-secret-disabled.output.service.json @@ -25,7 +25,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": [ @@ -53,7 +53,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": [ diff --git a/tests/fixtures/log-disabled.output.service.json b/tests/fixtures/log-disabled.output.service.json index 98bf667..986b0bf 100644 --- a/tests/fixtures/log-disabled.output.service.json +++ b/tests/fixtures/log-disabled.output.service.json @@ -31,7 +31,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -50,7 +50,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/log-ingestion-via-extension.output.service.json b/tests/fixtures/log-ingestion-via-extension.output.service.json index 888d1db..1a2effd 100644 --- a/tests/fixtures/log-ingestion-via-extension.output.service.json +++ b/tests/fixtures/log-ingestion-via-extension.output.service.json @@ -28,7 +28,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": [ @@ -57,7 +57,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": [ diff --git a/tests/fixtures/log-level.output.service.json b/tests/fixtures/log-level.output.service.json index f163065..f79a4d0 100644 --- a/tests/fixtures/log-level.output.service.json +++ b/tests/fixtures/log-level.output.service.json @@ -31,7 +31,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -53,7 +53,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/manual-wrapping.output.service.json b/tests/fixtures/manual-wrapping.output.service.json index da1853f..6d36975 100644 --- a/tests/fixtures/manual-wrapping.output.service.json +++ b/tests/fixtures/manual-wrapping.output.service.json @@ -40,7 +40,7 @@ ], "provider": { "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "name": "aws", "region": "us-east-1", diff --git a/tests/fixtures/node-versions.output.service.json b/tests/fixtures/node-versions.output.service.json index 85a4f04..686a357 100644 --- a/tests/fixtures/node-versions.output.service.json +++ b/tests/fixtures/node-versions.output.service.json @@ -29,7 +29,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -48,7 +48,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -67,7 +67,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS20X:21" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS20X:28" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/provider-environment-log-level.output.service.json b/tests/fixtures/provider-environment-log-level.output.service.json index ffec2e7..4b3d347 100644 --- a/tests/fixtures/provider-environment-log-level.output.service.json +++ b/tests/fixtures/provider-environment-log-level.output.service.json @@ -34,7 +34,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -56,7 +56,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/provider-environment.output.service.json b/tests/fixtures/provider-environment.output.service.json index 6d3cc7a..b465552 100644 --- a/tests/fixtures/provider-environment.output.service.json +++ b/tests/fixtures/provider-environment.output.service.json @@ -33,7 +33,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -55,7 +55,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/provider-layer.output.service.json b/tests/fixtures/provider-layer.output.service.json index 10bbfb6..895aac7 100644 --- a/tests/fixtures/provider-layer.output.service.json +++ b/tests/fixtures/provider-layer.output.service.json @@ -2,7 +2,7 @@ "service": "newrelic-lambda-layers-nodejs-example", "provider": { "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "name": "aws", "stage": "prod", diff --git a/tests/fixtures/proxy.output.service.json b/tests/fixtures/proxy.output.service.json index 1ef3f36..05effdc 100644 --- a/tests/fixtures/proxy.output.service.json +++ b/tests/fixtures/proxy.output.service.json @@ -24,7 +24,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": [ @@ -52,7 +52,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": [ diff --git a/tests/fixtures/stage-included.output.service.json b/tests/fixtures/stage-included.output.service.json index 919fbaf..5a10451 100644 --- a/tests/fixtures/stage-included.output.service.json +++ b/tests/fixtures/stage-included.output.service.json @@ -30,7 +30,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -49,7 +49,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/trusted-account-key-excluded.output.service.json b/tests/fixtures/trusted-account-key-excluded.output.service.json index 182e097..f19757e 100644 --- a/tests/fixtures/trusted-account-key-excluded.output.service.json +++ b/tests/fixtures/trusted-account-key-excluded.output.service.json @@ -29,7 +29,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -48,7 +48,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/trusted-account-key-included.output.service.json b/tests/fixtures/trusted-account-key-included.output.service.json index 026c4a2..dba1978 100644 --- a/tests/fixtures/trusted-account-key-included.output.service.json +++ b/tests/fixtures/trusted-account-key-included.output.service.json @@ -30,7 +30,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:96" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS16X:103" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -49,7 +49,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:71" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], From a56a9956872dc0bb6b9611d49732f4d03297ef71 Mon Sep 17 00:00:00 2001 From: Keegan Mullaney Date: Wed, 14 Aug 2024 00:23:54 -0700 Subject: [PATCH 3/4] feat: add provided.al2023 (#462) --- README.md | 1 + src/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 61ec03f..2177643 100644 --- a/README.md +++ b/README.md @@ -376,6 +376,7 @@ This plugin currently supports the following AWS runtimes: - java17 - java21 - provided.al2 +- provided.al2023 ## Contributing diff --git a/src/index.ts b/src/index.ts index 56f5f33..841324c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -36,6 +36,7 @@ const wrappableRuntimeList = [ "dotnet7", "dotnet8", "provided.al2", + "provided.al2023", ]; export default class NewRelicLambdaLayerPlugin { From a0fbe558a290a7edbd98f248dbe40e17ddf14fb5 Mon Sep 17 00:00:00 2001 From: Chodavarapu Naga Viswanadha Avinash Date: Wed, 20 Nov 2024 15:50:55 +0530 Subject: [PATCH 4/4] feat: Updating the Layer ARN versions to latest (#471) --- tests/fixtures/arm64.output.service.json | 2 +- tests/fixtures/debug-log-level.output.service.json | 2 +- tests/fixtures/debug.output.service.json | 2 +- .../fixtures/distributed-tracing-enabled.output.service.json | 2 +- tests/fixtures/eu.output.service.json | 2 +- tests/fixtures/function-has-layers.output.service.json | 4 ++-- tests/fixtures/include.output.service.json | 2 +- .../fixtures/includes-all-provider-layer.output.service.json | 2 +- tests/fixtures/lambda-extension-disabled.output.service.json | 2 +- tests/fixtures/lambda-extension-enabled.output.service.json | 2 +- .../fixtures/license-key-secret-disabled.output.service.json | 2 +- tests/fixtures/log-disabled.output.service.json | 2 +- .../fixtures/log-ingestion-via-extension.output.service.json | 2 +- tests/fixtures/log-level.output.service.json | 2 +- tests/fixtures/manual-wrapping.output.service.json | 2 +- tests/fixtures/node-versions.output.service.json | 4 ++-- .../provider-environment-log-level.output.service.json | 2 +- tests/fixtures/provider-environment.output.service.json | 2 +- tests/fixtures/provider-layer.output.service.json | 2 +- tests/fixtures/proxy.output.service.json | 2 +- tests/fixtures/stage-included.output.service.json | 2 +- .../fixtures/trusted-account-key-excluded.output.service.json | 2 +- .../fixtures/trusted-account-key-included.output.service.json | 2 +- 23 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/fixtures/arm64.output.service.json b/tests/fixtures/arm64.output.service.json index a332e37..bdafd18 100644 --- a/tests/fixtures/arm64.output.service.json +++ b/tests/fixtures/arm64.output.service.json @@ -52,7 +52,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:94" ], "package": { "exclude": [ diff --git a/tests/fixtures/debug-log-level.output.service.json b/tests/fixtures/debug-log-level.output.service.json index d075bc5..24afc13 100644 --- a/tests/fixtures/debug-log-level.output.service.json +++ b/tests/fixtures/debug-log-level.output.service.json @@ -54,7 +54,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/debug.output.service.json b/tests/fixtures/debug.output.service.json index fd3c258..238d6a6 100644 --- a/tests/fixtures/debug.output.service.json +++ b/tests/fixtures/debug.output.service.json @@ -53,7 +53,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/distributed-tracing-enabled.output.service.json b/tests/fixtures/distributed-tracing-enabled.output.service.json index 8bf1bbf..6c324ff 100644 --- a/tests/fixtures/distributed-tracing-enabled.output.service.json +++ b/tests/fixtures/distributed-tracing-enabled.output.service.json @@ -50,7 +50,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/eu.output.service.json b/tests/fixtures/eu.output.service.json index 732c720..c36c71d 100644 --- a/tests/fixtures/eu.output.service.json +++ b/tests/fixtures/eu.output.service.json @@ -55,7 +55,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/function-has-layers.output.service.json b/tests/fixtures/function-has-layers.output.service.json index b7a37a3..0533303 100644 --- a/tests/fixtures/function-has-layers.output.service.json +++ b/tests/fixtures/function-has-layers.output.service.json @@ -2,7 +2,7 @@ "service": "newrelic-lambda-layers-nodejs-example", "provider": { "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "name": "aws", "stage": "prod", @@ -46,7 +46,7 @@ "runtime": "nodejs18.x", "layers": [ "arn:aws:lambda:us-east-1:123456789012:layer:SomeOtherLayer:1", - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ] }, "layer-nodejs18x2": { diff --git a/tests/fixtures/include.output.service.json b/tests/fixtures/include.output.service.json index 3754611..3a8d351 100644 --- a/tests/fixtures/include.output.service.json +++ b/tests/fixtures/include.output.service.json @@ -43,7 +43,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": [ "./**", diff --git a/tests/fixtures/includes-all-provider-layer.output.service.json b/tests/fixtures/includes-all-provider-layer.output.service.json index a50f598..c573f3c 100644 --- a/tests/fixtures/includes-all-provider-layer.output.service.json +++ b/tests/fixtures/includes-all-provider-layer.output.service.json @@ -2,7 +2,7 @@ "service": "newrelic-lambda-layers-nodejs-example", "provider": { "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "name": "aws", "stage": "prod", diff --git a/tests/fixtures/lambda-extension-disabled.output.service.json b/tests/fixtures/lambda-extension-disabled.output.service.json index ffc3797..d905957 100644 --- a/tests/fixtures/lambda-extension-disabled.output.service.json +++ b/tests/fixtures/lambda-extension-disabled.output.service.json @@ -49,7 +49,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/lambda-extension-enabled.output.service.json b/tests/fixtures/lambda-extension-enabled.output.service.json index 882050f..e44430c 100644 --- a/tests/fixtures/lambda-extension-enabled.output.service.json +++ b/tests/fixtures/lambda-extension-enabled.output.service.json @@ -47,7 +47,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/license-key-secret-disabled.output.service.json b/tests/fixtures/license-key-secret-disabled.output.service.json index 41c25bc..3c0081b 100644 --- a/tests/fixtures/license-key-secret-disabled.output.service.json +++ b/tests/fixtures/license-key-secret-disabled.output.service.json @@ -53,7 +53,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": [ diff --git a/tests/fixtures/log-disabled.output.service.json b/tests/fixtures/log-disabled.output.service.json index 986b0bf..d0bdd88 100644 --- a/tests/fixtures/log-disabled.output.service.json +++ b/tests/fixtures/log-disabled.output.service.json @@ -50,7 +50,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/log-ingestion-via-extension.output.service.json b/tests/fixtures/log-ingestion-via-extension.output.service.json index 1a2effd..08daaf3 100644 --- a/tests/fixtures/log-ingestion-via-extension.output.service.json +++ b/tests/fixtures/log-ingestion-via-extension.output.service.json @@ -57,7 +57,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": [ diff --git a/tests/fixtures/log-level.output.service.json b/tests/fixtures/log-level.output.service.json index f79a4d0..9df7ee6 100644 --- a/tests/fixtures/log-level.output.service.json +++ b/tests/fixtures/log-level.output.service.json @@ -53,7 +53,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/manual-wrapping.output.service.json b/tests/fixtures/manual-wrapping.output.service.json index 6d36975..b2ddb51 100644 --- a/tests/fixtures/manual-wrapping.output.service.json +++ b/tests/fixtures/manual-wrapping.output.service.json @@ -40,7 +40,7 @@ ], "provider": { "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "name": "aws", "region": "us-east-1", diff --git a/tests/fixtures/node-versions.output.service.json b/tests/fixtures/node-versions.output.service.json index 686a357..08bec76 100644 --- a/tests/fixtures/node-versions.output.service.json +++ b/tests/fixtures/node-versions.output.service.json @@ -48,7 +48,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], @@ -67,7 +67,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS20X:28" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS20X:44" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/provider-environment-log-level.output.service.json b/tests/fixtures/provider-environment-log-level.output.service.json index 4b3d347..a6ad5d9 100644 --- a/tests/fixtures/provider-environment-log-level.output.service.json +++ b/tests/fixtures/provider-environment-log-level.output.service.json @@ -56,7 +56,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/provider-environment.output.service.json b/tests/fixtures/provider-environment.output.service.json index b465552..dc2523a 100644 --- a/tests/fixtures/provider-environment.output.service.json +++ b/tests/fixtures/provider-environment.output.service.json @@ -55,7 +55,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/provider-layer.output.service.json b/tests/fixtures/provider-layer.output.service.json index 895aac7..6df3d1a 100644 --- a/tests/fixtures/provider-layer.output.service.json +++ b/tests/fixtures/provider-layer.output.service.json @@ -2,7 +2,7 @@ "service": "newrelic-lambda-layers-nodejs-example", "provider": { "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "name": "aws", "stage": "prod", diff --git a/tests/fixtures/proxy.output.service.json b/tests/fixtures/proxy.output.service.json index 05effdc..4132d8a 100644 --- a/tests/fixtures/proxy.output.service.json +++ b/tests/fixtures/proxy.output.service.json @@ -52,7 +52,7 @@ ], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": [ diff --git a/tests/fixtures/stage-included.output.service.json b/tests/fixtures/stage-included.output.service.json index 5a10451..2d19db9 100644 --- a/tests/fixtures/stage-included.output.service.json +++ b/tests/fixtures/stage-included.output.service.json @@ -49,7 +49,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/trusted-account-key-excluded.output.service.json b/tests/fixtures/trusted-account-key-excluded.output.service.json index f19757e..2f0eb3e 100644 --- a/tests/fixtures/trusted-account-key-excluded.output.service.json +++ b/tests/fixtures/trusted-account-key-excluded.output.service.json @@ -48,7 +48,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"], diff --git a/tests/fixtures/trusted-account-key-included.output.service.json b/tests/fixtures/trusted-account-key-included.output.service.json index dba1978..ada5614 100644 --- a/tests/fixtures/trusted-account-key-included.output.service.json +++ b/tests/fixtures/trusted-account-key-included.output.service.json @@ -49,7 +49,7 @@ "events": [{ "schedule": "rate(5 minutes)" }], "handler": "newrelic-lambda-wrapper.handler", "layers": [ - "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:78" + "arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94" ], "package": { "exclude": ["./**", "!newrelic-wrapper-helper.js"],