Skip to content

Commit c9cdafc

Browse files
chore: Updated examples with latest versions (#493)
1 parent 2a4100c commit c9cdafc

27 files changed

+84
-37
lines changed

examples/nodejs/serverless.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,25 @@ functions:
4444
include:
4545
- handler.js
4646
runtime: nodejs18.x
47+
48+
layer-nodejs20x:
49+
events:
50+
- schedule: rate(5 minutes)
51+
handler: handler.handler
52+
package:
53+
exclude:
54+
- ./**
55+
include:
56+
- handler.js
57+
runtime: nodejs20.x
58+
59+
layer-nodejs22x:
60+
events:
61+
- schedule: rate(5 minutes)
62+
handler: handler.handler
63+
package:
64+
exclude:
65+
- ./**
66+
include:
67+
- handler.js
68+
runtime: nodejs22.x

examples/python-requirements/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"author": "",
1414
"license": "ISC",
1515
"devDependencies": {
16-
"serverless": "^3.3.0",
16+
"serverless": "^4.9.0",
1717
"serverless-python-requirements": "^5.3.1"
1818
}
1919
}

examples/python-requirements/serverless.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ provider:
44
name: aws
55
stage: test
66
region: us-east-1
7-
runtime: python3.6
7+
runtime: python3.13
88

99
plugins:
1010
- serverless-python-requirements
@@ -13,13 +13,14 @@ plugins:
1313
custom:
1414
newRelic:
1515
accountId: ${env:NEW_RELIC_ACCOUNT_ID}
16+
apiKey: ${env:NEW_RELIC_PERSONAL_API_KEY}
1617
debug: true
1718
pythonRequirements:
1819
dockerizePip: true
1920
layer: true
2021

2122
functions:
22-
layer-python36:
23+
layer-python313:
2324
events:
2425
- schedule: rate(5 minutes)
2526
handler: sample_app.handlers.handler

examples/python/serverless.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ custom:
2020
newRelic:
2121
accountId: ${env:NEW_RELIC_ACCOUNT_ID}
2222
apiKey: ${env:NEW_RELIC_PERSONAL_API_KEY}
23+
2324
debug: true
2425

2526
functions:
26-
layer-python36:
27+
28+
layer-python38:
2729
events:
2830
- schedule: rate(5 minutes)
2931
handler: handler.handler
@@ -32,9 +34,9 @@ functions:
3234
- ./**
3335
include:
3436
- handler.py
35-
runtime: python3.6
37+
runtime: python3.8
3638

37-
layer-python37:
39+
layer-python39:
3840
events:
3941
- schedule: rate(5 minutes)
4042
handler: handler.handler
@@ -43,9 +45,9 @@ functions:
4345
- ./**
4446
include:
4547
- handler.py
46-
runtime: python3.7
48+
runtime: python3.9
4749

48-
layer-python38:
50+
layer-python310:
4951
events:
5052
- schedule: rate(5 minutes)
5153
handler: handler.handler
@@ -54,9 +56,9 @@ functions:
5456
- ./**
5557
include:
5658
- handler.py
57-
runtime: python3.8
59+
runtime: python3.10
5860

59-
layer-python39:
61+
layer-python311:
6062
events:
6163
- schedule: rate(5 minutes)
6264
handler: handler.handler
@@ -65,4 +67,26 @@ functions:
6567
- ./**
6668
include:
6769
- handler.py
68-
runtime: python3.9
70+
runtime: python3.11
71+
72+
layer-python312:
73+
events:
74+
- schedule: rate(5 minutes)
75+
handler: handler.handler
76+
package:
77+
exclude:
78+
- ./**
79+
include:
80+
- handler.py
81+
runtime: python3.12
82+
83+
layer-python313:
84+
events:
85+
- schedule: rate(5 minutes)
86+
handler: handler.handler
87+
package:
88+
exclude:
89+
- ./**
90+
include:
91+
- handler.py
92+
runtime: python3.13

tests/fixtures/arm64.output.service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
],
5353
"handler": "newrelic-lambda-wrapper.handler",
5454
"layers": [
55-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:101"
55+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:109"
5656
],
5757
"package": {
5858
"exclude": [

tests/fixtures/debug-log-level.output.service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"events": [{ "schedule": "rate(5 minutes)" }],
5555
"handler": "newrelic-lambda-wrapper.handler",
5656
"layers": [
57-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:101"
57+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:109"
5858
],
5959
"package": {
6060
"exclude": ["./**", "!newrelic-wrapper-helper.js"],

tests/fixtures/debug.output.service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"events": [{ "schedule": "rate(5 minutes)" }],
5454
"handler": "newrelic-lambda-wrapper.handler",
5555
"layers": [
56-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:101"
56+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:109"
5757
],
5858
"package": {
5959
"exclude": ["./**", "!newrelic-wrapper-helper.js"],

tests/fixtures/distributed-tracing-enabled.output.service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
],
5151
"handler": "newrelic-lambda-wrapper.handler",
5252
"layers": [
53-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:101"
53+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:109"
5454
],
5555
"package": {
5656
"exclude": ["./**", "!newrelic-wrapper-helper.js"],

tests/fixtures/eu.output.service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
],
5656
"handler": "newrelic-lambda-wrapper.handler",
5757
"layers": [
58-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:101"
58+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:109"
5959
],
6060
"package": {
6161
"exclude": ["./**", "!newrelic-wrapper-helper.js"],

tests/fixtures/function-has-layers.output.service.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"service": "newrelic-lambda-layers-nodejs-example",
33
"provider": {
44
"layers": [
5-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:101"
5+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:109"
66
],
77
"name": "aws",
88
"stage": "prod",
@@ -46,7 +46,7 @@
4646
"runtime": "nodejs18.x",
4747
"layers": [
4848
"arn:aws:lambda:us-east-1:123456789012:layer:SomeOtherLayer:1",
49-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:101"
49+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:109"
5050
]
5151
},
5252
"layer-nodejs18x2": {

0 commit comments

Comments
 (0)