Skip to content

Commit

Permalink
Disable account blacklist for testing
Browse files Browse the repository at this point in the history
Relates To: domain-protect#287
  • Loading branch information
bc-jcarlson committed Oct 2, 2024
1 parent a438840 commit 100e80f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lambda_code/scan/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,14 @@ def lambda_handler(event, context): # pylint:disable=unused-argument
account_id = event["Id"]
account_name = event["Name"]

if account_id in bc_acct_blacklist:
print(f"Account ID {account_id} found in blacklist, skipping...")
return
# if account_id in bc_acct_blacklist:
# print(f"Account ID {account_id} found in blacklist, skipping...")
# return

boto3_session = assume_role(account_id)
if not boto3_session:
print(f"Cannot assume role in account {account_name} ({account_id})")
return
route53 = boto3_session.client("route53")

hosted_zones = list_hosted_zones(event, route53)
Expand Down

0 comments on commit 100e80f

Please sign in to comment.