Skip to content

Commit a5acd0f

Browse files
committed
feat(lambda): node20 runtime (#27897)
Preparing for node20 launch ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent a2e5f65 commit a5acd0f

File tree

8 files changed

+207
-22
lines changed

8 files changed

+207
-22
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js.snapshot/aws-cdk-lambda-runtime-inlinecode.assets.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js.snapshot/aws-cdk-lambda-runtime-inlinecode.template.json

+62-7
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
"Code": {
3838
"ZipFile": "def handler(event, context):\n return \"success\""
3939
},
40+
"Handler": "index.handler",
4041
"Role": {
4142
"Fn::GetAtt": [
4243
"PYTHON37ServiceRoleDE7E561E",
4344
"Arn"
4445
]
4546
},
46-
"Handler": "index.handler",
4747
"Runtime": "python3.7"
4848
},
4949
"DependsOn": [
@@ -87,13 +87,13 @@
8787
"Code": {
8888
"ZipFile": "def handler(event, context):\n return \"success\""
8989
},
90+
"Handler": "index.handler",
9091
"Role": {
9192
"Fn::GetAtt": [
9293
"PYTHON38ServiceRole3EA86BBE",
9394
"Arn"
9495
]
9596
},
96-
"Handler": "index.handler",
9797
"Runtime": "python3.8"
9898
},
9999
"DependsOn": [
@@ -137,13 +137,13 @@
137137
"Code": {
138138
"ZipFile": "def handler(event, context):\n return \"success\""
139139
},
140+
"Handler": "index.handler",
140141
"Role": {
141142
"Fn::GetAtt": [
142143
"PYTHON39ServiceRole53E964DF",
143144
"Arn"
144145
]
145146
},
146-
"Handler": "index.handler",
147147
"Runtime": "python3.9"
148148
},
149149
"DependsOn": [
@@ -187,13 +187,13 @@
187187
"Code": {
188188
"ZipFile": "def handler(event, context):\n return \"success\""
189189
},
190+
"Handler": "index.handler",
190191
"Role": {
191192
"Fn::GetAtt": [
192193
"PYTHON310ServiceRole65985CC8",
193194
"Arn"
194195
]
195196
},
196-
"Handler": "index.handler",
197197
"Runtime": "python3.10"
198198
},
199199
"DependsOn": [
@@ -237,13 +237,13 @@
237237
"Code": {
238238
"ZipFile": "exports.handler = async function(event) { return \"success\" }"
239239
},
240+
"Handler": "index.handler",
240241
"Role": {
241242
"Fn::GetAtt": [
242243
"NODEJS14XServiceRole4523ECDB",
243244
"Arn"
244245
]
245246
},
246-
"Handler": "index.handler",
247247
"Runtime": "nodejs14.x"
248248
},
249249
"DependsOn": [
@@ -287,13 +287,13 @@
287287
"Code": {
288288
"ZipFile": "exports.handler = async function(event) { return \"success\" }"
289289
},
290+
"Handler": "index.handler",
290291
"Role": {
291292
"Fn::GetAtt": [
292293
"NODEJS16XServiceRoleB9DAFDFD",
293294
"Arn"
294295
]
295296
},
296-
"Handler": "index.handler",
297297
"Runtime": "nodejs16.x"
298298
},
299299
"DependsOn": [
@@ -337,18 +337,68 @@
337337
"Code": {
338338
"ZipFile": "exports.handler = async function(event) { return \"success\" }"
339339
},
340+
"Handler": "index.handler",
340341
"Role": {
341342
"Fn::GetAtt": [
342343
"NODEJS18XServiceRole4D18036A",
343344
"Arn"
344345
]
345346
},
346-
"Handler": "index.handler",
347347
"Runtime": "nodejs18.x"
348348
},
349349
"DependsOn": [
350350
"NODEJS18XServiceRole4D18036A"
351351
]
352+
},
353+
"NODEJS20XServiceRole188A4E38": {
354+
"Type": "AWS::IAM::Role",
355+
"Properties": {
356+
"AssumeRolePolicyDocument": {
357+
"Statement": [
358+
{
359+
"Action": "sts:AssumeRole",
360+
"Effect": "Allow",
361+
"Principal": {
362+
"Service": "lambda.amazonaws.com"
363+
}
364+
}
365+
],
366+
"Version": "2012-10-17"
367+
},
368+
"ManagedPolicyArns": [
369+
{
370+
"Fn::Join": [
371+
"",
372+
[
373+
"arn:",
374+
{
375+
"Ref": "AWS::Partition"
376+
},
377+
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
378+
]
379+
]
380+
}
381+
]
382+
}
383+
},
384+
"NODEJS20X70A25ADE": {
385+
"Type": "AWS::Lambda::Function",
386+
"Properties": {
387+
"Code": {
388+
"ZipFile": "exports.handler = async function(event) { return \"success\" }"
389+
},
390+
"Handler": "index.handler",
391+
"Role": {
392+
"Fn::GetAtt": [
393+
"NODEJS20XServiceRole188A4E38",
394+
"Arn"
395+
]
396+
},
397+
"Runtime": "nodejs20.x"
398+
},
399+
"DependsOn": [
400+
"NODEJS20XServiceRole188A4E38"
401+
]
352402
}
353403
},
354404
"Outputs": {
@@ -386,6 +436,11 @@
386436
"Value": {
387437
"Ref": "NODEJS18X7B6E6033"
388438
}
439+
},
440+
"NODEJS20XfunctionName": {
441+
"Value": {
442+
"Ref": "NODEJS20X70A25ADE"
443+
}
389444
}
390445
},
391446
"Parameters": {

packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js.snapshot/cdk.out

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js.snapshot/integ.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js.snapshot/manifest.json

+21-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)