Skip to content

Commit

Permalink
Generate aws session in scan.py
Browse files Browse the repository at this point in the history
Relates To: SECENG-1648
  • Loading branch information
bc-jcarlson committed Aug 16, 2024
1 parent dadd57b commit 32e0c2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lambda_code/scan/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ def lambda_handler(event, context): # pylint:disable=unused-argument
account_id = event["Id"]
account_name = event["Name"]

aws_session = assume_role(account_id)

hosted_zones = list_hosted_zones(event)

for hosted_zone in hosted_zones:
Expand Down

0 comments on commit 32e0c2f

Please sign in to comment.