Skip to content

Commit

Permalink
Guardduty benchmark SAM updated
Browse files Browse the repository at this point in the history
  • Loading branch information
himsharma01 committed Nov 22, 2023
1 parent 2141112 commit 1d4c63f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
3 changes: 2 additions & 1 deletion cloudwatchevents/guarddutybenchmark/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

export AWS_PROFILE="prod"
export AWS_REGION="us-east-1"
if [ "$AWS_PROFILE" == "prod" ]
then
SAM_S3_BUCKET="appdevstore"
Expand All @@ -10,7 +11,7 @@ else
AWS_REGION="us-east-2"
fi

version="1.0.12"
version="1.0.13"

echo "Creating package.yaml"
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
Expand Down
11 changes: 5 additions & 6 deletions cloudwatchevents/guarddutybenchmark/packaged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Transform: AWS::Serverless-2016-10-31
Description: 'This function is invoked by AWS CloudWatch events in response to state
change in your AWS resources which matches a event target definition. The event
payload received is then forwarded to Sumo Logic HTTP source endpoint.
'
Globals:
Function:
Expand Down Expand Up @@ -53,9 +52,9 @@ Metadata:
- benchmark
- guardduty
Name: sumologic-guardduty-benchmark
LicenseUrl: s3://appdevstore/guarddutybenchmark/v1.0.12/6092dd6c323e33634657102f570628e0
ReadmeUrl: s3://appdevstore/guarddutybenchmark/v1.0.12/cab012d7fb7887671b751e6f5c0d2062
SemanticVersion: 1.0.12
LicenseUrl: s3://appdevstore/guarddutybenchmark/v1.0.13/6092dd6c323e33634657102f570628e0
ReadmeUrl: s3://appdevstore/guarddutybenchmark/v1.0.13/cab012d7fb7887671b751e6f5c0d2062
SemanticVersion: 1.0.13
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/cloudwatchevents/guarddutybenchmark
SpdxLicenseId: Apache-2.0
Parameters:
Expand Down Expand Up @@ -96,7 +95,7 @@ Parameters:
Resources:
CloudWatchEventFunction:
Properties:
CodeUri: s3://appdevstore/guarddutybenchmark/v1.0.12/22b7b226ca9ec3b9dbb28b94c0e5f824
CodeUri: s3://appdevstore/guarddutybenchmark/v1.0.13/22b7b226ca9ec3b9dbb28b94c0e5f824
Environment:
Variables:
SUMO_ENDPOINT:
Expand All @@ -120,7 +119,7 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:956882708938:applications/sumologic-app-utils
SemanticVersion: 2.0.6
SemanticVersion: 2.0.11
Metadata:
SamResourceId: SumoAppUtils
SumoHostedCollector:
Expand Down
10 changes: 5 additions & 5 deletions cloudwatchevents/guarddutybenchmark/template_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Metadata:
Name: sumologic-guardduty-benchmark
LicenseUrl: ../LICENSE
ReadmeUrl: ./README.md
SemanticVersion: 1.0.12
SemanticVersion: 1.0.13
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/cloudwatchevents/guarddutybenchmark
SpdxLicenseId: Apache-2.0

Expand Down Expand Up @@ -118,13 +118,13 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:956882708938:applications/sumologic-app-utils
SemanticVersion: 2.0.6
SemanticVersion: 2.0.11

SumoHostedCollector:
Type: Custom::Collector
Properties:
ServiceToken: !GetAtt SumoAppUtils.Outputs.SumoAppUtilsFunction
Region: !Ref "AWS::Region"
Region: !Ref AWS::Region
CollectorType: Hosted
RemoveOnDeleteStack: !Ref RemoveSumoResourcesOnDeleteStack
CollectorName: !Ref CollectorName
Expand All @@ -136,7 +136,7 @@ Resources:
Type: Custom::HTTPSource
Properties:
ServiceToken: !GetAtt SumoAppUtils.Outputs.SumoAppUtilsFunction
Region: !Ref "AWS::Region"
Region: !Ref AWS::Region
SourceName: !Ref SourceName
RemoveOnDeleteStack: !Ref RemoveSumoResourcesOnDeleteStack
SourceCategory: !Ref SourceCategoryName
Expand All @@ -151,7 +151,7 @@ Resources:
Type: Custom::App
Properties:
ServiceToken: !GetAtt SumoAppUtils.Outputs.SumoAppUtilsFunction
Region: !Ref "AWS::Region"
Region: !Ref AWS::Region
AppName: "Global Intelligence for Amazon GuardDuty"
AppId: "8e7efcb3-040a-4a92-9f8d-922fafb24afb"
RemoveOnDeleteStack: !Ref RemoveSumoResourcesOnDeleteStack
Expand Down

0 comments on commit 1d4c63f

Please sign in to comment.