aws-samples / aws-control-tower-guardduty-enabler

Apache License 2.0
41 stars 26 forks source link

Large org hitting error #14

Closed cornickj closed 4 years ago

cornickj commented 4 years ago

Getting error in Lambda logs, and GuardDuty not enabled in any accounts except master. [ERROR] TypeError: argument of type 'NoneType' is not iterable Traceback (most recent call last): File "/var/task/guardduty_enabler.py", line 304, in lambda_handler aws_account_dict = get_account_list() File "/var/task/guardduty_enabler.py", line 100, in get_account_list while 'NextToken' in accounts: