fix(terraform): update CKV_AWS_363 deprecated Lambda runtime list to include nodejs18.x#7531
Open
dbuaon wants to merge 1 commit intobridgecrewio:mainfrom
Open
fix(terraform): update CKV_AWS_363 deprecated Lambda runtime list to include nodejs18.x#7531dbuaon wants to merge 1 commit intobridgecrewio:mainfrom
dbuaon wants to merge 1 commit intobridgecrewio:mainfrom
Conversation
…include nodejs18.x
Author
|
Hi maintainers, this PR updates CKV_AWS_363 to include nodejs18.x now that it has reached AWS Lambda end-of-support. The change is intentionally small and limited to the deprecated runtime list, with the stale TODO comments removed from both Terraform and CloudFormation checks. Happy to adjust if you prefer a different policy update format. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
CKV_AWS_363 checks whether AWS Lambda functions are using deprecated runtimes.
nodejs18.xreached AWS Lambda end-of-support on September 1, 2025, but it was still commented out in the deprecated runtime list with a TODO note.This PR updates CKV_AWS_363 to treat
nodejs18.xas a deprecated runtime for both Terraform and CloudFormation checks.Changes
nodejs18.xto the deprecated Lambda runtime list.nodejs18.x.Fix
Update the Lambda function runtime to a supported version such as
nodejs20.x,nodejs22.x, or another actively maintained runtime.Validation
Local commands executed:
python -m pytest -q -n0 tests/terraform/checks/resource/aws/test_LambdaDeprecatedRuntime.pypython -m pytest -q -n0 tests/cloudformation/checks/resource/aws/test_LambdaDeprecatedRuntime.pyObserved results:
nodejs18.xis now reported as a deprecated Lambda runtime.nodejs20.xandnodejs22.xremain valid.Related issue
Fixes #7416
Checklist: