chore(awslambda): update obsolete lambda runtimes (#7330)

Co-authored-by: MrCloudSec <hello@mistercloudsec.com>
(cherry picked from commit 9923def4cb)

# Conflicts:
#	prowler/config/config.yaml
#	prowler/providers/aws/services/awslambda/awslambda_function_using_supported_runtimes/awslambda_function_using_supported_runtimes.py
This commit is contained in:
Jonny
2025-03-24 10:21:01 +00:00
parent 7e8cf49b10
commit 3ef6413e69
2 changed files with 37 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ aws:
"python3.6",
"python2.7",
"python3.7",
"python3.8",
"nodejs4.3",
"nodejs4.3-edge",
"nodejs6.10",
@@ -68,6 +69,11 @@ aws:
"nodejs12.x",
"nodejs14.x",
"dotnet5.0",
<<<<<<< HEAD
=======
"dotnet6",
"dotnet7",
>>>>>>> 9923def4c (chore(awslambda): update obsolete lambda runtimes (#7330))
"dotnetcore1.0",
"dotnetcore2.0",
"dotnetcore2.1",

View File

@@ -1,6 +1,37 @@
from prowler.lib.check.models import Check, Check_Report_AWS
from prowler.providers.aws.services.awslambda.awslambda_client import awslambda_client
<<<<<<< HEAD
=======
default_obsolete_lambda_runtimes = [
"java8",
"go1.x",
"provided",
"python3.6",
"python2.7",
"python3.7",
"python3.8",
"nodejs4.3",
"nodejs4.3-edge",
"nodejs6.10",
"nodejs",
"nodejs8.10",
"nodejs10.x",
"nodejs12.x",
"nodejs14.x",
"nodejs16.x",
"dotnet5.0",
"dotnet6",
"dotnet7",
"dotnetcore1.0",
"dotnetcore2.0",
"dotnetcore2.1",
"dotnetcore3.1",
"ruby2.5",
"ruby2.7",
]
>>>>>>> 9923def4c (chore(awslambda): update obsolete lambda runtimes (#7330))
class awslambda_function_using_supported_runtimes(Check):
def execute(self):