Skip to content

Commit eb5e688

Browse files
authored
feat(custom-resource): update default node runtime to node22 in custom resources for commercial, china and gov regions (#34319)
### Issue # (if applicable) N/A ### Reason for this change Node 20 is currently in maintenance phase and is slated to reach EOL on 2026-04-30 as indicated on https://nodejs.dev/en/about/releases/. ### Description of changes Update `LATEST_NODE_RUNTIME_MAP` to `Node22` for commerical, china and US Gov regions. This will update CDK to use `nodejs22.x'` as the runtime for custom resources based on region. The `nodejs22.x` is not yet available in isolated regions, so it would be still be `Node18` for those regions. ### Describe any new or updated permissions being added N/A ### Description of how you validated changes Manually tested all individual custom resource handlers for create, update, and delete. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent cf57cb8 commit eb5e688

File tree

2,084 files changed

+398790
-487753
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,084 files changed

+398790
-487753
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log-firehose.js.snapshot/integ.json

Lines changed: 2 additions & 1 deletion
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-apigateway/test/integ.restapi.access-log-firehose.js.snapshot/manifest.json

Lines changed: 3 additions & 3 deletions
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-apigateway/test/integ.restapi.access-log-firehose.js.snapshot/test-apigateway-access-logs-firehose.assets.json

Lines changed: 2 additions & 2 deletions
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-apigateway/test/integ.restapi.access-log-firehose.js.snapshot/test-apigateway-access-logs-firehose.template.json

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -301,112 +301,112 @@
301301
"Mappings": {
302302
"LatestNodeRuntimeMap": {
303303
"af-south-1": {
304-
"value": "nodejs20.x"
304+
"value": "nodejs22.x"
305305
},
306306
"ap-east-1": {
307-
"value": "nodejs20.x"
307+
"value": "nodejs22.x"
308308
},
309309
"ap-east-2": {
310-
"value": "nodejs20.x"
310+
"value": "nodejs22.x"
311311
},
312312
"ap-northeast-1": {
313-
"value": "nodejs20.x"
313+
"value": "nodejs22.x"
314314
},
315315
"ap-northeast-2": {
316-
"value": "nodejs20.x"
316+
"value": "nodejs22.x"
317317
},
318318
"ap-northeast-3": {
319-
"value": "nodejs20.x"
319+
"value": "nodejs22.x"
320320
},
321321
"ap-south-1": {
322-
"value": "nodejs20.x"
322+
"value": "nodejs22.x"
323323
},
324324
"ap-south-2": {
325-
"value": "nodejs20.x"
325+
"value": "nodejs22.x"
326326
},
327327
"ap-southeast-1": {
328-
"value": "nodejs20.x"
328+
"value": "nodejs22.x"
329329
},
330330
"ap-southeast-2": {
331-
"value": "nodejs20.x"
331+
"value": "nodejs22.x"
332332
},
333333
"ap-southeast-3": {
334-
"value": "nodejs20.x"
334+
"value": "nodejs22.x"
335335
},
336336
"ap-southeast-4": {
337-
"value": "nodejs20.x"
337+
"value": "nodejs22.x"
338338
},
339339
"ap-southeast-5": {
340-
"value": "nodejs20.x"
340+
"value": "nodejs22.x"
341341
},
342342
"ap-southeast-7": {
343-
"value": "nodejs20.x"
343+
"value": "nodejs22.x"
344344
},
345345
"ca-central-1": {
346-
"value": "nodejs20.x"
346+
"value": "nodejs22.x"
347347
},
348348
"ca-west-1": {
349-
"value": "nodejs20.x"
349+
"value": "nodejs22.x"
350350
},
351351
"cn-north-1": {
352-
"value": "nodejs20.x"
352+
"value": "nodejs22.x"
353353
},
354354
"cn-northwest-1": {
355-
"value": "nodejs20.x"
355+
"value": "nodejs22.x"
356356
},
357357
"eu-central-1": {
358-
"value": "nodejs20.x"
358+
"value": "nodejs22.x"
359359
},
360360
"eu-central-2": {
361-
"value": "nodejs20.x"
361+
"value": "nodejs22.x"
362362
},
363363
"eu-isoe-west-1": {
364364
"value": "nodejs18.x"
365365
},
366366
"eu-north-1": {
367-
"value": "nodejs20.x"
367+
"value": "nodejs22.x"
368368
},
369369
"eu-south-1": {
370-
"value": "nodejs20.x"
370+
"value": "nodejs22.x"
371371
},
372372
"eu-south-2": {
373-
"value": "nodejs20.x"
373+
"value": "nodejs22.x"
374374
},
375375
"eu-west-1": {
376-
"value": "nodejs20.x"
376+
"value": "nodejs22.x"
377377
},
378378
"eu-west-2": {
379-
"value": "nodejs20.x"
379+
"value": "nodejs22.x"
380380
},
381381
"eu-west-3": {
382-
"value": "nodejs20.x"
382+
"value": "nodejs22.x"
383383
},
384384
"il-central-1": {
385-
"value": "nodejs20.x"
385+
"value": "nodejs22.x"
386386
},
387387
"me-central-1": {
388-
"value": "nodejs20.x"
388+
"value": "nodejs22.x"
389389
},
390390
"me-south-1": {
391-
"value": "nodejs20.x"
391+
"value": "nodejs22.x"
392392
},
393393
"mx-central-1": {
394-
"value": "nodejs20.x"
394+
"value": "nodejs22.x"
395395
},
396396
"sa-east-1": {
397-
"value": "nodejs20.x"
397+
"value": "nodejs22.x"
398398
},
399399
"us-east-1": {
400-
"value": "nodejs20.x"
400+
"value": "nodejs22.x"
401401
},
402402
"us-east-2": {
403-
"value": "nodejs20.x"
403+
"value": "nodejs22.x"
404404
},
405405
"us-gov-east-1": {
406-
"value": "nodejs20.x"
406+
"value": "nodejs22.x"
407407
},
408408
"us-gov-west-1": {
409-
"value": "nodejs20.x"
409+
"value": "nodejs22.x"
410410
},
411411
"us-iso-east-1": {
412412
"value": "nodejs18.x"
@@ -421,10 +421,10 @@
421421
"value": "nodejs18.x"
422422
},
423423
"us-west-1": {
424-
"value": "nodejs20.x"
424+
"value": "nodejs22.x"
425425
},
426426
"us-west-2": {
427-
"value": "nodejs20.x"
427+
"value": "nodejs22.x"
428428
}
429429
}
430430
},

packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration.js.snapshot/asset.12157b27d30ab71eb24ae65825f672ba5cc2c09dbb1703cd7adfcff3aeaca136.zip

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration.js.snapshot/asset.8a84a8f465fbe0c48af2c256847ec9abfe095d23781b749728b998315f3ad732.zip

Lines changed: 3 additions & 0 deletions
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-appconfig/test/integ.configuration.js.snapshot/aws-appconfig-configuration.assets.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)