Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SecurityHub_CISPlaybooks_CloudFormation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ Resources:
# import lambda env var
lambdaFunctionName = os.environ['AWS_LAMBDA_FUNCTION_NAME']
# parse details from sechub finding
myDefaultSecGroupId = str(event['detail']['findings'][0]['Resources'][0]['Details']['Other']['groupId'])
myDefaultSecGroupId = str(event['detail']['findings'][0]['Resources'][0]['Details']['AwsEc2SecurityGroup']['GroupId'])
findingId = str(event['detail']['findings'][0]['Id'])
try:
# sg ec2 resource object
Expand Down Expand Up @@ -1714,4 +1714,4 @@ Resources:
SourceArn:
Fn::GetAtt:
- "CIS43RREventRule"
- "Arn"
- "Arn"