Skip to content

Commit

Permalink
remove emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 2, 2026
1 parent 4690e66 commit 624ff91
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions local-app/python-tools/cross-organization/assess_check_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys

# --- VERSIONING ---
__version__ = "1.0.1"
__version__ = "1.0.2"

def main():
parser = argparse.ArgumentParser(description=f"AWS Config Audit Assessor v{__version__}")
Expand Down Expand Up @@ -35,7 +35,6 @@ def main():
checks = account.get("data", {})

# 1. Evaluate Global Recording Summary
# Look for the 'account_summary' key injected by check_config.py
summary_record = checks.get("account_summary", {})
global_status = summary_record.get("_summary", "MISSING")

Expand All @@ -54,21 +53,18 @@ def main():
if not is_valid:
s3_issues.append(f"{reg}:{bucket}")

# Text-only compliance status (removed emojis)
if s3_issues:
non_compliant_s3 += 1
s3_str = ", ".join(s3_issues)
s3_str = "NON_COMPLIANT: " + ", ".join(s3_issues)
else:
s3_str = "✅ Compliant"
s3_str = "COMPLIANT"

print(f"{acc_id:<15} | {alias[:20]:<20} | {global_status:<12} | {s3_str}")

# Final Summary Footer
print("-" * 110)
print(f"ASSESSMENT SUMMARY:")
print(f" Total Accounts Scanned: {total_accounts}")
print(f" Accounts with Duplicate Global Recording: {duplicate_globals}")
print(f" Accounts with Non-Compliant S3 Buckets: {non_compliant_s3}")
print("-" * 110)
print(f" Accounts with Duplicate Global Recording: {


if __name__ == "__main__":
main()

0 comments on commit 624ff91

Please sign in to comment.