feat(custom-resource): update default node runtime to node22 in custom resources for commercial, china and gov regions #34319
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
toNode22
for commerical, china and US Gov regions. This will update CDK to usenodejs22.x'
as the runtime for custom resources based on region. Thenodejs22.x
is not yet available in isolated regions, so it would be still beNode18
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
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license