Skip to content

Commit e70fde9

Browse files
authored
Merge pull request #136 from SumoLogic/autosubscribechanges
releasing new versions for cloudwatchevents
2 parents 77040d4 + 438471b commit e70fde9

File tree

4 files changed

+38
-17
lines changed

4 files changed

+38
-17
lines changed

cloudwatchevents/guardduty/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Made with ❤️ by Sumo Logic AppDev Team. Available on the [AWS Serverless App
1717
## Lambda Environment Variables
1818
The following AWS Lambda environment variables are supported
1919

20-
SUMO_ENDPOINT (REQUIRED) - SumoLogic HTTP Collector endpoint URL.
21-
SOURCE_CATEGORY_OVERRIDE (OPTIONAL) - Override _sourceCategory metadata field within SumoLogic. If none will not be overridden
22-
SOURCE_HOST_OVERRIDE (OPTIONAL) - Override _sourceHost metadata field within SumoLogic. If none will not be overridden
23-
SOURCE_NAME_OVERRIDE (OPTIONAL) - Override _sourceName metadata field within SumoLogic. If none will not be overridden
20+
- SUMO_ENDPOINT (REQUIRED) - SumoLogic HTTP Collector endpoint URL.
21+
- SOURCE_CATEGORY_OVERRIDE (OPTIONAL) - Override _sourceCategory metadata field within SumoLogic. If none will not be overridden
22+
- SOURCE_HOST_OVERRIDE (OPTIONAL) - Override _sourceHost metadata field within SumoLogic. If none will not be overridden
23+
- SOURCE_NAME_OVERRIDE (OPTIONAL) - Override _sourceName metadata field within SumoLogic. If none will not be overridden
2424

2525
## Excluding Outer Event Fields
2626

cloudwatchevents/guardduty/packaged.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,36 @@ Description: 'This function is invoked by AWS CloudWatch events in response to s
88
Globals:
99
Function:
1010
Timeout: 300
11+
Metadata:
12+
AWS::ServerlessRepo::Application:
13+
Author: Sumo Logic
14+
Description: This function is invoked by AWS CloudWatch events in response to
15+
state change in your AWS resources which matches a event target definition.
16+
The event payload received is then forwarded to Sumo Logic HTTP source endpoint.
17+
HomePageUrl: https://github.com/SumoLogic/sumologic-aws-lambda
18+
Labels:
19+
- sumologic
20+
- serverless
21+
- guardduty
22+
- security
23+
- cloudwatchevents
24+
- guardduty
25+
Name: sumologic-guardduty-events-processor
26+
LicenseUrl: s3://appdevstore/GuardDuty/v1.0.3/6092dd6c323e33634657102f570628e0
27+
ReadmeUrl: s3://appdevstore/GuardDuty/v1.0.3/9d217c45b3ababadef584aee27d4d607
28+
SemanticVersion: 1.0.3
29+
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/cloudwatchevents/guardduty
30+
SpdxLicenseId: Apache-2.0
1131
Parameters:
1232
SumoEndpointUrl:
1333
Type: String
1434
Resources:
1535
CloudWatchEventFunction:
1636
Type: AWS::Serverless::Function
1737
Properties:
18-
CodeUri: s3://appdevstore/GuardDuty/v1.0.2/0d13904d1fbd69ecd879992058f1aa41
38+
CodeUri: s3://appdevstore/GuardDuty/v1.0.3/58c7f17decc811a6e8904a19a9f844a1
1939
Handler: cloudwatchevents.handler
20-
Runtime: nodejs10.x
40+
Runtime: nodejs14.x
2141
Environment:
2242
Variables:
2343
SUMO_ENDPOINT:

cloudwatchevents/guarddutybenchmark/packaged_v2.yaml renamed to cloudwatchevents/guarddutybenchmark/packaged.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ Metadata:
5353
- benchmark
5454
- guardduty
5555
Name: sumologic-guardduty-benchmark
56-
LicenseUrl: s3://appdevstore/guarddutybenchmark/v1.0.10/cac1a6df52c685e0f6ebe4ae72078c80
57-
ReadmeUrl: s3://appdevstore/guarddutybenchmark/v1.0.10/cab012d7fb7887671b751e6f5c0d2062
58-
SemanticVersion: 1.0.10
56+
LicenseUrl: s3://appdevstore/guarddutybenchmark/v1.0.11/6092dd6c323e33634657102f570628e0
57+
ReadmeUrl: s3://appdevstore/guarddutybenchmark/v1.0.11/cab012d7fb7887671b751e6f5c0d2062
58+
SemanticVersion: 1.0.11
5959
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/cloudwatchevents/guarddutybenchmark
60+
SpdxLicenseId: Apache-2.0
6061
Parameters:
6162
CollectorName:
6263
Type: String
@@ -83,7 +84,7 @@ Parameters:
8384
- us1
8485
- in
8586
- fed
86-
Description: Enter au, ca, de, eu, jp, us2, or us1
87+
Description: Enter in, fed, au, ca, de, eu, jp, us2, or us1
8788
RemoveSumoResourcesOnDeleteStack:
8889
AllowedValues:
8990
- true
@@ -95,7 +96,7 @@ Parameters:
9596
Resources:
9697
CloudWatchEventFunction:
9798
Properties:
98-
CodeUri: s3://appdevstore/guarddutybenchmark/v1.0.10/0d13904d1fbd69ecd879992058f1aa41
99+
CodeUri: s3://appdevstore/guarddutybenchmark/v1.0.11/58c7f17decc811a6e8904a19a9f844a1
99100
Environment:
100101
Variables:
101102
SUMO_ENDPOINT:
@@ -110,14 +111,14 @@ Resources:
110111
- aws.guardduty
111112
Type: CloudWatchEvent
112113
Handler: cloudwatchevents.handler
113-
Runtime: nodejs10.x
114+
Runtime: nodejs14.x
114115
Type: AWS::Serverless::Function
115116
SumoAppUtils:
116117
Type: AWS::Serverless::Application
117118
Properties:
118119
Location:
119120
ApplicationId: arn:aws:serverlessrepo:us-east-1:956882708938:applications/sumologic-app-utils
120-
SemanticVersion: 1.0.24
121+
SemanticVersion: 2.0.6
121122
SumoHostedCollector:
122123
Type: Custom::Collector
123124
Properties:
@@ -174,7 +175,7 @@ Resources:
174175
- Outputs.SumoAppUtilsFunction
175176
Region:
176177
Ref: AWS::Region
177-
AppName: Amazon GuardDuty Benchmark
178+
AppName: Global Intelligence for Amazon GuardDuty
178179
AppId: 8e7efcb3-040a-4a92-9f8d-922fafb24afb
179180
RemoveOnDeleteStack:
180181
Ref: RemoveSumoResourcesOnDeleteStack

cloudwatchevents/test/testdeploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
export AWS_REGION="us-east-1"
4-
export AWS_PROFILE="personal"
4+
export AWS_PROFILE="default"
55

66
if [[ "${AWS_PROFILE}" == "personal" ]]
77
then
@@ -18,7 +18,7 @@ app_names=(
1818

1919
sam --version
2020
# Regex to deploy only expected templates.
21-
match_case=""
21+
match_case="guarddutybenchmark"
2222

2323
for app_name in "${app_names[@]}"
2424
do
@@ -35,7 +35,7 @@ do
3535
sam package --profile ${AWS_PROFILE} --template-file ../"${KEY}/${VALUE}" --s3-bucket ${SAM_S3_BUCKET} --output-template-file ../"${KEY}"/packaged.yaml \
3636
--s3-prefix "${KEY}/v${version}"
3737

38-
sam publish --template ../"${KEY}"/packaged.yaml --region ${AWS_REGION} --semantic-version "${version}"
38+
sam publish --profile ${AWS_PROFILE} --template ../"${KEY}"/packaged.yaml --region ${AWS_REGION} --semantic-version "${version}"
3939
echo "Publish done"
4040
fi
4141
done

0 commit comments

Comments
 (0)