Skip to content

Commit 150e69c

Browse files
Merge pull request #196 from SumoLogic/sumo_240726
Upgrade NodeJs to 20 version
2 parents 712a49a + 5f2ec4e commit 150e69c

File tree

18 files changed

+66
-59
lines changed

18 files changed

+66
-59
lines changed

cloudwatchevents/guardduty/deploy.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ else
1010
AWS_REGION="us-east-2"
1111
fi
1212

13-
version="1.0.4"
13+
version="1.0.5"
1414

1515
echo "Creating package.yaml"
1616
sam package --template-file template.yaml --s3-bucket $SAM_S3_BUCKET --output-template-file packaged.yaml --s3-prefix "GuardDuty/v"$version --region $AWS_REGION --profile $AWS_PROFILE

cloudwatchevents/guardduty/packaged.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Metadata:
2323
- cloudwatchevents
2424
- guardduty
2525
Name: sumologic-guardduty-events-processor
26-
LicenseUrl: s3://appdevstore/GuardDuty/v1.0.4/6092dd6c323e33634657102f570628e0
27-
ReadmeUrl: s3://appdevstore/GuardDuty/v1.0.4/9d217c45b3ababadef584aee27d4d607
28-
SemanticVersion: 1.0.4
29-
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/cloudwatchevents/guardduty
26+
LicenseUrl: s3://appdevstore/GuardDuty/v1.0.5/6092dd6c323e33634657102f570628e0
27+
ReadmeUrl: s3://appdevstore/GuardDuty/v1.0.5/9d217c45b3ababadef584aee27d4d607
28+
SemanticVersion: 1.0.5
29+
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/cloudwatchevents/guardduty
3030
SpdxLicenseId: Apache-2.0
3131
Parameters:
3232
SumoEndpointUrl:
@@ -35,9 +35,9 @@ Resources:
3535
CloudWatchEventFunction:
3636
Type: AWS::Serverless::Function
3737
Properties:
38-
CodeUri: s3://appdevstore/GuardDuty/v1.0.4/22b7b226ca9ec3b9dbb28b94c0e5f824
38+
CodeUri: s3://appdevstore/GuardDuty/v1.0.5/22b7b226ca9ec3b9dbb28b94c0e5f824
3939
Handler: cloudwatchevents.handler
40-
Runtime: nodejs18.x
40+
Runtime: nodejs20.x
4141
Environment:
4242
Variables:
4343
SUMO_ENDPOINT:

cloudwatchevents/guardduty/template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Metadata:
2323
Name: sumologic-guardduty-events-processor
2424
LicenseUrl: ../LICENSE
2525
ReadmeUrl: ./README.md
26-
SemanticVersion: 1.0.4
27-
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/cloudwatchevents/guardduty
26+
SemanticVersion: 1.0.5
27+
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/cloudwatchevents/guardduty
2828
SpdxLicenseId: Apache-2.0
2929

3030
Parameters:
@@ -38,7 +38,7 @@ Resources:
3838
Properties:
3939
CodeUri: ../src/
4040
Handler: cloudwatchevents.handler
41-
Runtime: nodejs18.x
41+
Runtime: nodejs20.x
4242
Environment:
4343
Variables:
4444
SUMO_ENDPOINT: !Ref SumoEndpointUrl

cloudwatchevents/guarddutybenchmark/deploy.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ else
1111
AWS_REGION="us-east-2"
1212
fi
1313

14-
version="1.0.13"
14+
version="1.0.14"
1515

1616
echo "Creating package.yaml"
1717
sam package --template-file template_v2.yaml --s3-bucket $SAM_S3_BUCKET --output-template-file packaged.yaml --s3-prefix "guarddutybenchmark/v"$version --region $AWS_REGION --profile $AWS_PROFILE

cloudwatchevents/guarddutybenchmark/packaged.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Transform: AWS::Serverless-2016-10-31
33
Description: 'This function is invoked by AWS CloudWatch events in response to state
44
change in your AWS resources which matches a event target definition. The event
55
payload received is then forwarded to Sumo Logic HTTP source endpoint.
6+
67
'
78
Globals:
89
Function:
@@ -52,10 +53,10 @@ Metadata:
5253
- benchmark
5354
- guardduty
5455
Name: sumologic-guardduty-benchmark
55-
LicenseUrl: s3://appdevstore/guarddutybenchmark/v1.0.13/6092dd6c323e33634657102f570628e0
56-
ReadmeUrl: s3://appdevstore/guarddutybenchmark/v1.0.13/cab012d7fb7887671b751e6f5c0d2062
57-
SemanticVersion: 1.0.13
58-
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/cloudwatchevents/guarddutybenchmark
56+
LicenseUrl: s3://appdevstore/guarddutybenchmark/v1.0.14/6092dd6c323e33634657102f570628e0
57+
ReadmeUrl: s3://appdevstore/guarddutybenchmark/v1.0.14/cab012d7fb7887671b751e6f5c0d2062
58+
SemanticVersion: 1.0.14
59+
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/cloudwatchevents/guarddutybenchmark
5960
SpdxLicenseId: Apache-2.0
6061
Parameters:
6162
CollectorName:
@@ -95,7 +96,7 @@ Parameters:
9596
Resources:
9697
CloudWatchEventFunction:
9798
Properties:
98-
CodeUri: s3://appdevstore/guarddutybenchmark/v1.0.13/22b7b226ca9ec3b9dbb28b94c0e5f824
99+
CodeUri: s3://appdevstore/guarddutybenchmark/v1.0.14/22b7b226ca9ec3b9dbb28b94c0e5f824
99100
Environment:
100101
Variables:
101102
SUMO_ENDPOINT:
@@ -110,7 +111,7 @@ Resources:
110111
- aws.guardduty
111112
Type: CloudWatchEvent
112113
Handler: cloudwatchevents.handler
113-
Runtime: nodejs18.x
114+
Runtime: nodejs20.x
114115
Type: AWS::Serverless::Function
115116
Metadata:
116117
SamResourceId: CloudWatchEventFunction
@@ -119,7 +120,7 @@ Resources:
119120
Properties:
120121
Location:
121122
ApplicationId: arn:aws:serverlessrepo:us-east-1:956882708938:applications/sumologic-app-utils
122-
SemanticVersion: 2.0.11
123+
SemanticVersion: 2.0.15
123124
Metadata:
124125
SamResourceId: SumoAppUtils
125126
SumoHostedCollector:

cloudwatchevents/guarddutybenchmark/template_v2.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ Metadata:
5656
Name: sumologic-guardduty-benchmark
5757
LicenseUrl: ../LICENSE
5858
ReadmeUrl: ./README.md
59-
SemanticVersion: 1.0.13
60-
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/cloudwatchevents/guarddutybenchmark
59+
SemanticVersion: 1.0.14
60+
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/cloudwatchevents/guarddutybenchmark
6161
SpdxLicenseId: Apache-2.0
6262

6363
Parameters:
@@ -110,15 +110,15 @@ Resources:
110110
- aws.guardduty
111111
Type: CloudWatchEvent
112112
Handler: cloudwatchevents.handler
113-
Runtime: nodejs18.x
113+
Runtime: nodejs20.x
114114
Type: AWS::Serverless::Function
115115

116116
SumoAppUtils:
117117
Type: AWS::Serverless::Application
118118
Properties:
119119
Location:
120120
ApplicationId: arn:aws:serverlessrepo:us-east-1:956882708938:applications/sumologic-app-utils
121-
SemanticVersion: 2.0.11
121+
SemanticVersion: 2.0.15
122122

123123
SumoHostedCollector:
124124
Type: Custom::Collector

cloudwatchevents/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "AWS Lambda function to collect CloudWatch events and post them to SumoLogic.",
55
"main": "src/cloudwatchevents.js",
6-
"repository": "https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/cloudwatchevents",
6+
"repository": "https://github.com/SumoLogic/sumologic-aws-lambda/tree/main/cloudwatchevents",
77
"author": "Himanshu Pal",
88
"license": "Apache-2.0",
99
"dependencies": {},

cloudwatchlogs-with-dlq/DLQLambdaCloudFormation.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
"FunctionName": { "Fn::Join": [ "-", [ "SumoCWLogsLambda", { "Fn::Select" : [ "2", {"Fn::Split" : [ "/" , { "Ref": "AWS::StackId" } ]}] } ] ] },
211211
"Code": {
212212
"S3Bucket": { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "bucketname"]},
213-
"S3Key": "cloudwatchLogsDLQ/v1.2.0/cloudwatchlogs-with-dlq.zip"
213+
"S3Key": "cloudwatchLogsDLQ/v1.3.0/cloudwatchlogs-with-dlq.zip"
214214
},
215215
"Role": {
216216
"Fn::GetAtt": [
@@ -228,7 +228,7 @@
228228
}
229229
},
230230
"Handler": "cloudwatchlogs_lambda.handler",
231-
"Runtime": "nodejs18.x",
231+
"Runtime": "nodejs20.x",
232232
"MemorySize": 128,
233233
"Environment": {
234234
"Variables": {
@@ -272,7 +272,7 @@
272272
"FunctionName": { "Fn::Join": [ "-", [ "SumoCWProcessDLQLambda", { "Fn::Select" : [ "2", {"Fn::Split" : [ "/" , { "Ref": "AWS::StackId" } ]}] } ] ] },
273273
"Code": {
274274
"S3Bucket": { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "bucketname"]},
275-
"S3Key": "cloudwatchLogsDLQ/v1.2.0/cloudwatchlogs-with-dlq.zip"
275+
"S3Key": "cloudwatchLogsDLQ/v1.3.0/cloudwatchlogs-with-dlq.zip"
276276
},
277277
"Role": {
278278
"Fn::GetAtt": [
@@ -290,7 +290,7 @@
290290
]
291291
}
292292
},
293-
"Runtime": "nodejs18.x",
293+
"Runtime": "nodejs20.x",
294294
"MemorySize": 128,
295295
"Environment": {
296296
"Variables": {

cloudwatchlogs-with-dlq/DLQLambdaCloudFormationWithSecuredEndpoint.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
"FunctionName": { "Fn::Join": [ "-", [ "SumoCWLogsLambda", { "Fn::Select" : [ "2", {"Fn::Split" : [ "/" , { "Ref": "AWS::StackId" } ]}] } ] ] },
253253
"Code": {
254254
"S3Bucket": { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "bucketname"]},
255-
"S3Key": "cloudwatchLogsDLQ/v1.2.0/cloudwatchlogs-with-dlq.zip"
255+
"S3Key": "cloudwatchLogsDLQ/v1.3.0/cloudwatchlogs-with-dlq.zip"
256256
},
257257
"Role": {
258258
"Fn::GetAtt": [
@@ -270,7 +270,7 @@
270270
}
271271
},
272272
"Handler": "cloudwatchlogs_lambda.handler",
273-
"Runtime": "nodejs18.x",
273+
"Runtime": "nodejs20.x",
274274
"MemorySize": 128,
275275
"Environment": {
276276
"Variables": {
@@ -313,7 +313,7 @@
313313
"FunctionName": { "Fn::Join": [ "-", [ "SumoCWProcessDLQLambda", { "Fn::Select" : [ "2", {"Fn::Split" : [ "/" , { "Ref": "AWS::StackId" } ]}] } ] ] },
314314
"Code": {
315315
"S3Bucket": { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "bucketname"]},
316-
"S3Key": "cloudwatchLogsDLQ/v1.2.0/cloudwatchlogs-with-dlq.zip"
316+
"S3Key": "cloudwatchLogsDLQ/v1.3.0/cloudwatchlogs-with-dlq.zip"
317317
},
318318
"Role": {
319319
"Fn::GetAtt": [
@@ -331,7 +331,7 @@
331331
]
332332
}
333333
},
334-
"Runtime": "nodejs18.x",
334+
"Runtime": "nodejs20.x",
335335
"MemorySize": 128,
336336
"Environment": {
337337
"Variables": {
-25 KB
Binary file not shown.

0 commit comments

Comments
 (0)