Skip to content
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 enablesecurityhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def check_config(session,account, region, s3_bucket_name):
master_clients[aws_region] = master_session.client('securityhub', region_name=aws_region)
try:
# Enable Security Hub for the Master Account
master_clients[aws_region].enable_security_hub()
master_clients[aws_region].enable_security_hub(EnableDefaultStandards=False)

# Enable compliance Standards for Master account
compliance_standards_arns = [utils.get_standard_arn_for_region_and_resource(aws_region, standard) for standard in standards_arns]
Expand Down Expand Up @@ -319,7 +319,7 @@ def check_config(session,account, region, s3_bucket_name):
failed_accounts.append({account: "Error validating or enabling AWS Config for account {} in {} - requested standards not enabled".format(account,aws_region)})
else:
try:
sh_client.enable_security_hub()
sh_client.enable_security_hub(EnableDefaultStandards=False)
except ClientError as e:
if e.response['Error']['Code'] == 'ResourceConflictException':
pass
Expand Down