Skip to content

Commit 32e0c2f

Browse files
committed
Generate aws session in scan.py
Relates To: SECENG-1648
1 parent dadd57b commit 32e0c2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lambda_code/scan/scan.py

+2
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ def lambda_handler(event, context): # pylint:disable=unused-argument
291291
account_id = event["Id"]
292292
account_name = event["Name"]
293293

294+
aws_session = assume_role(account_id)
295+
294296
hosted_zones = list_hosted_zones(event)
295297

296298
for hosted_zone in hosted_zones:

0 commit comments

Comments
 (0)