Skip to content

Commit

Permalink
change default
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 2, 2026
1 parent 16d875b commit 042bab2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def find_latest_file(pattern):
def main():
parser = argparse.ArgumentParser(description=f"AWS Config Audit Assessor v{__version__}")
parser.add_argument("--input", help="JSON audit file (default: latest audit_results.check_config.*.json)")
parser.add_argument("--central-bucket-regex", default=".*-org-.*", help="Regex for corporate S3 standards")
parser.add_argument("--central-bucket-regex", default="-org-", help="Regex for corporate S3 standards")
args = parser.parse_args()

input_file = args.input or find_latest_file("audit_results.check_config.*.json")
Expand Down Expand Up @@ -63,7 +63,7 @@ def main():
stats["size_bytes"] += reg_data.get("bucket_size_bytes", 0)

if bucket != "N/A":
if re.match(args.central_bucket_regex, bucket):
if re.search(args.central_bucket_regex, bucket):
stats["central_buckets"].add(bucket)
else:
s3_issues.append(bucket)
Expand Down

0 comments on commit 042bab2

Please sign in to comment.