Skip to content

Commit

Permalink
published 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu219 committed Dec 23, 2021
1 parent 1b3d6ed commit d68ee7f
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sumologic-securityhub-collector-aws-org

This solution consists of a lambda function which which gets triggered by CloudWatch events with findings as payload which are then ingested to Sumo Logic
This solution consists of a lambda function which which gets triggered by CloudWatch events with findings as payload which are then ingested to Sumo Logic HTTP endpoint.


Made with ❤️ by Sumo Logic. Available on the [AWS Serverless Application Repository](https://aws.amazon.com/serverless)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ Description: 'This solution consists of a lambda function which which gets trigg
Globals:
Function:
Timeout: 300
Metadata:
AWS::ServerlessRepo::Application:
Author: Sumo Logic
Description: This solution consists of a lambda function which which gets triggered
by CloudWatch events with findings as payload which are then ingested to Sumo
Logic via HTTP source.
HomePageUrl: https://github.com/SumoLogic/sumologic-aws-lambda
Labels:
- sumologic
- serverless
- security
- cloudwatchevents
- securityhub
Name: sumologic-securityhub-connector-aws-org
LicenseUrl: s3://appdevstore/6092dd6c323e33634657102f570628e0
ReadmeUrl: s3://appdevstore/eb911876461845db8f3113dbace6d454
SemanticVersion: 1.0.0
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/securityhub-org/sumologic-securityhub-connector-aws-org
SpdxLicenseId: Apache-2.0
Parameters:
SumoEndpoint:
Description: SumoLogic Endpoint to post logs
Expand All @@ -22,7 +41,7 @@ Resources:
Properties:
Handler: securityhub_collector_org.lambda_handler
Runtime: python3.7
CodeUri: s3://appdevstore20211221-prod/55757e09bcbcd9341582d51963ad4726
CodeUri: s3://appdevstore/c2ebca31013ee83ec84396c7df8c50a0
MemorySize: 128
Timeout: 300
ReservedConcurrentExecutions: 100
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
if [ "$AWS_PROFILE" == "prod" ]
then
SAM_S3_BUCKET="appdevstore20211221"
SAM_S3_BUCKET="appdevstore"
AWS_REGION="us-east-1"
else
SAM_S3_BUCKET="appdevstore20211221-prod"
AWS_REGION="us-east-1"
fi
sam package --template-file template.yaml --s3-bucket $SAM_S3_BUCKET --output-template-file packaged.yaml

sam deploy --template-file packaged.yaml --stack-name testingsecurityhubcollectorawsorg --capabilities CAPABILITY_IAM --region $AWS_REGION --parameter-overrides ParameterKey=SumoEndpoint,ParameterValue=https://endpoint6.collection.us2.sumologic.com/receiver/v1/http/
sam publish --template packaged.yaml --region us-east-1

# sam deploy --template-file packaged.yaml --stack-name testingsecurityhubcollectorawsorg --capabilities CAPABILITY_IAM --region $AWS_REGION --parameter-overrides ParameterKey=SumoEndpoint,ParameterValue=https://endpoint6.collection.us2.sumologic.com/receiver/v1/http/

#aws --profile awsorg cloudformation describe-stack-events --stack-name testingsecurityhubcollectorawsorg --region $AWS_REGION
#aws --profile awsorg cloudformation get-template --stack-name testingsecurityhubcollectorawsorg --region $AWS_REGION
#aws --profile awsorg serverlessrepo create-application-version --region us-east-1 --application-id arn:aws:serverlessrepo:us-east-1:$AWS_ACCOUNT_ID:applications/sumologic-securityhub-connector-aws-org --semantic-version 1.0.0 --template-body file://packaged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ Description: >
Globals:
Function:
Timeout: 300
Metadata:
AWS::ServerlessRepo::Application:
Author: Sumo Logic
Description: This solution consists of a lambda function which which gets triggered by CloudWatch events with findings as payload which are then ingested to Sumo Logic via HTTP source.
HomePageUrl: https://github.com/SumoLogic/sumologic-aws-lambda
Labels:
- sumologic
- serverless
- security
- cloudwatchevents
- securityhub
Name: sumologic-securityhub-connector-aws-org
LicenseUrl: ../LICENSE
ReadmeUrl: ../README.md
SemanticVersion: 1.0.0
SourceCodeUrl: https://github.com/SumoLogic/sumologic-aws-lambda/tree/master/securityhub-org/sumologic-securityhub-connector-aws-org
SpdxLicenseId: Apache-2.0

Parameters:
SumoEndpoint:
Expand Down

0 comments on commit d68ee7f

Please sign in to comment.