Skip to content

Commit 8d1343b

Browse files
chore: Update deprecated Lambda runtimes (#3113)
* chore: Update deprecated Lambda runtimes --------- Co-authored-by: Kevin DeJong <[email protected]>
1 parent ba669c9 commit 8d1343b

16 files changed

+70
-35
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,107 @@
11
{
2+
"dotnet6": {
3+
"deprecated": "2024-11-12",
4+
"eol": "2025-01-11",
5+
"successor": "dotnet8"
6+
},
7+
"dotnet7": {
8+
"deprecated": "2024-05-14",
9+
"eol": "2026-10-08",
10+
"successor": "dotnet8"
11+
},
212
"dotnetcore1.0": {
313
"deprecated": "2019-07-31",
414
"eol": "2019-06-27",
5-
"successor": "dotnet6"
15+
"successor": "dotnet8"
616
},
717
"dotnetcore2.0": {
818
"deprecated": "2019-05-30",
919
"eol": "2019-04-30",
10-
"successor": "dotnet6"
20+
"successor": "dotnet8"
1121
},
1222
"dotnetcore2.1": {
1323
"deprecated": "2021-09-23",
1424
"eol": "2021-08-23",
15-
"successor": "dotnet6"
25+
"successor": "dotnet8"
1626
},
1727
"dotnetcore3.1": {
1828
"deprecated": "2023-02-20",
1929
"eol": "2023-01-20",
20-
"successor": "dotnet6"
30+
"successor": "dotnet8"
2131
},
2232
"nodejs": {
2333
"deprecated": "2016-10-31",
2434
"eol": "2016-10-31",
25-
"successor": "nodejs16.x"
35+
"successor": "nodejs20.x"
2636
},
2737
"nodejs10.x": {
2838
"deprecated": "2021-08-30",
2939
"eol": "2021-07-30",
30-
"successor": "nodejs16.x"
40+
"successor": "nodejs20.x"
3141
},
3242
"nodejs12.x": {
3343
"deprecated": "2022-12-14",
3444
"eol": "2022-11-14",
35-
"successor": "nodejs16.x"
45+
"successor": "nodejs20.x"
46+
},
47+
"nodejs14.x": {
48+
"deprecated": "2023-12-04",
49+
"eol": "2024-01-09",
50+
"successor": "nodejs20.x"
51+
},
52+
"nodejs16.x": {
53+
"deprecated": "2024-06-12",
54+
"eol": "2024-07-15",
55+
"successor": "nodejs20.x"
3656
},
3757
"nodejs4.3": {
3858
"deprecated": "2019-04-30",
3959
"eol": "2018-04-30",
40-
"successor": "nodejs16.x"
60+
"successor": "nodejs20.x"
4161
},
4262
"nodejs4.3-edge": {
4363
"deprecated": "2019-04-30",
4464
"eol": "2018-04-30",
45-
"successor": "nodejs16.x"
65+
"successor": "nodejs20.x"
4666
},
4767
"nodejs6.10": {
4868
"deprecated": "2019-08-12",
4969
"eol": "2019-04-30",
50-
"successor": "nodejs16.x"
70+
"successor": "nodejs20.x"
5171
},
5272
"nodejs8.10": {
5373
"deprecated": "2020-02-03",
5474
"eol": "2019-12-31",
55-
"successor": "nodejs16.x"
75+
"successor": "nodejs20.x"
5676
},
5777
"python2.7": {
5878
"deprecated": "2021-09-30",
5979
"eol": "2021-07-15",
60-
"successor": "python3.9"
80+
"successor": "python3.12"
6181
},
6282
"python3.6": {
6383
"deprecated": "2022-08-17",
6484
"eol": "2022-07-18",
65-
"successor": "python3.9"
85+
"successor": "python3.12"
86+
},
87+
"python3.7": {
88+
"deprecated": "2023-12-04",
89+
"eol": "2024-01-09",
90+
"successor": "python3.12"
91+
},
92+
"python3.8": {
93+
"deprecated": "2024-10-14",
94+
"eol": "2024-11-13",
95+
"successor": "python3.12"
6696
},
6797
"ruby2.5": {
68-
"deprecated": "2021-08-30",
98+
"deprecated": "2021-07-30",
6999
"eol": "2021-07-30",
70-
"successor": "ruby2.7"
100+
"successor": "ruby3.2"
101+
},
102+
"ruby2.7": {
103+
"deprecated": "2023-12-07",
104+
"eol": "2024-01-09",
105+
"successor": "ruby3.2"
71106
}
72107
}

test/fixtures/results/public/lambda-poller.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"LineNumber": 151
1919
}
2020
},
21-
"Message": "Deprecated runtime (nodejs6.10) specified. Updating disabled since 2019-08-12. Please consider updating to nodejs16.x",
21+
"Message": "Deprecated runtime (nodejs6.10) specified. Updating disabled since 2019-08-12. Please consider updating to nodejs20.x",
2222
"Rule": {
2323
"Description": "Check if an EOL Lambda Runtime is specified and give an error if used. ",
2424
"Id": "E2531",

test/fixtures/results/quickstart/nist_config_rules.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"LineNumber": 94
7373
}
7474
},
75-
"Message": "Deprecated runtime (nodejs) specified. Updating disabled since 2016-10-31. Please consider updating to nodejs16.x",
75+
"Message": "Deprecated runtime (nodejs) specified. Updating disabled since 2016-10-31. Please consider updating to nodejs20.x",
7676
"Rule": {
7777
"Description": "Check if an EOL Lambda Runtime is specified and give an error if used. ",
7878
"Id": "E2531",
@@ -152,7 +152,7 @@
152152
"LineNumber": 159
153153
}
154154
},
155-
"Message": "Deprecated runtime (nodejs) specified. Updating disabled since 2016-10-31. Please consider updating to nodejs16.x",
155+
"Message": "Deprecated runtime (nodejs) specified. Updating disabled since 2016-10-31. Please consider updating to nodejs20.x",
156156
"Rule": {
157157
"Description": "Check if an EOL Lambda Runtime is specified and give an error if used. ",
158158
"Id": "E2531",

test/fixtures/templates/bad/resources/lambda/required_properties.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Resources:
99
Code:
1010
S3Bucket: my-bucket
1111
S3Key: function.zip
12-
# Runtime: nodejs16.x
12+
# Runtime: nodejs20.x
1313
Function2:
1414
Type: AWS::Lambda::Function
1515
Properties:
@@ -27,6 +27,6 @@ Resources:
2727
Role: arn:aws:iam::123456789012:role/lambda-role
2828
Code:
2929
ZipFile: |
30-
var aws = require('aws-sdk')
30+
import {LambdaClient} from '@aws-sdk/client-lambda';
3131
exports.handler = function(event, context) {}
32-
# Runtime: nodejs16.x
32+
# Runtime: nodejs20.x

test/fixtures/templates/good/functions/join.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Resources:
4949
Type: "AWS::Serverless::Function"
5050
Properties:
5151
Handler: index.handler
52-
Runtime: python3.7
52+
Runtime: python3.12
5353
InlineCode: |
5454
import cfnresponse
5555
def handler(event, context):

test/fixtures/templates/good/resources/lambda/required_properties.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Resources:
1717
Role: arn:aws:iam::123456789012:role/lambda-role
1818
Code:
1919
ZipFile: |
20-
var aws = require('aws-sdk')
20+
import { LambdaClient } from '@aws-sdk/client-lambda';
2121
exports.handler = function(event, context) {}
22-
Runtime: nodejs16.x
22+
Runtime: nodejs20.x
2323
Function3: # image deployment
2424
Type: AWS::Lambda::Function
2525
Properties:

test/fixtures/templates/good/transform.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Resources:
66
Type: AWS::Serverless::Function
77
Properties:
88
Handler: index.handler
9-
Runtime: nodejs14.x
9+
Runtime: nodejs20.x
1010
CodeUri: 's3://testBucket/mySourceCode.zip'
1111
ExampleLayer:
1212
Type: AWS::Serverless::LayerVersion

test/fixtures/templates/good/transform/auto_publish_alias.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Resources:
2222
Properties:
2323
CodeUri: '.'
2424
Handler: main.handler
25-
Runtime: python3.7
25+
Runtime: python3.12
2626
Timeout: 30
2727
MemorySize: 128
2828
AutoPublishAlias: !Ref Stage1
@@ -31,7 +31,7 @@ Resources:
3131
Properties:
3232
CodeUri: '.'
3333
Handler: main.handler
34-
Runtime: python3.7
34+
Runtime: python3.12
3535
Timeout: 30
3636
MemorySize: 128
3737
FunctionName: !Sub "Stage-${Stage2}-${AWS::Region}"

test/fixtures/templates/good/transform/function_use_s3_uri.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Resources:
1818
Properties:
1919
FunctionName: !Sub "my-custom-authorizer-${AWS::Region}"
2020
Description: Custom authorizer for APIGW
21-
Runtime: nodejs16.x
21+
Runtime: nodejs20.x
2222
Handler: index.handler
2323
CodeUri: !Sub "s3://custom-authz-${AWS::AccountId}-${AWS::Region}/function-v1.0.zip"
2424
Policies:

test/fixtures/templates/good/transform/function_using_image.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Resources:
66
Properties:
77
PackageType: Image
88
Metadata:
9-
DockerTag: nodejs14.x-v1
9+
DockerTag: nodejs20.x-v1
1010
DockerContext: ./hello-world
1111
Dockerfile: Dockerfile

test/fixtures/templates/good/transform/list_transform.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Resources:
1717
Properties:
1818
CodeUri: "."
1919
Handler: main.handler
20-
Runtime: python3.7
20+
Runtime: python3.12
2121
Timeout: 30
2222
MemorySize: 128
2323
AutoPublishAlias: !Ref Stage1

test/fixtures/templates/good/transform/list_transform_many.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Transform:
55
Globals:
66
Function:
77
Timeout: 3
8-
Runtime: nodejs14.x
8+
Runtime: nodejs20.x
99
Environment:
1010
Variables:
1111
VARIABLE: VALUE

test/fixtures/templates/good/transform/list_transform_not_sam.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Resources:
1010
Code:
1111
ZipFile: '.'
1212
Handler: main.handler
13-
Runtime: python3.7
13+
Runtime: python3.12
1414
Timeout: 30
1515
MemorySize: 128
1616
Role: arn:aws:iam::123456789012:role/role-name

test/fixtures/templates/good/transform_serverless_api.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Resources:
66
Type: AWS::Serverless::Function
77
Properties:
88
Handler: index.handler
9-
Runtime: nodejs14.x
9+
Runtime: nodejs20.x
1010
CodeUri: 's3://testBucket/mySourceCode.zip'
1111
AutoPublishAlias: live
1212
DeploymentPreference:

test/fixtures/templates/good/transform_serverless_function.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Resources:
1010
Type: AWS::Serverless::Function
1111
Properties:
1212
Handler: index.handler
13-
Runtime: nodejs14.x
13+
Runtime: nodejs20.x
1414
CodeUri: 's3://testBucket/mySourceCode.zip'
1515
AutoPublishAlias: live
1616
DeploymentPreference:

test/integration/test_good_templates.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class TestQuickStartTemplates(BaseCliTestCase):
149149
"Path": ["Resources", "myFunction", "Properties", "Runtime"],
150150
"Start": {"ColumnNumber": 3, "LineNumber": 10},
151151
},
152-
"Message": "Deprecated runtime (nodejs6.10) specified. Updating disabled since 2019-08-12. Please consider updating to nodejs16.x",
152+
"Message": "Deprecated runtime (nodejs6.10) specified. Updating disabled since 2019-08-12. Please consider updating to nodejs20.x",
153153
"Rule": {
154154
"Description": "Check if an EOL Lambda Runtime is specified and give an error if used. ",
155155
"Id": "E2531",

0 commit comments

Comments
 (0)