aws-samples / aws-samples/amazon-guardduty-multiaccount-scripts
Organisation account in Removed state
- Dominant language
- Python
- Stars
- 131
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
Testing the script I found a special case where an organization member can be in Removed state.
By modifying a few lines, the script handles that too:
# Check if Verification Was failed before, delete and add it again.
if member_dict[account] == 'EmailVerificationFailed' or member_dict[account] == 'Removed':
if member_dict[account] == 'Removed':
print('The account is in the Removed state so we will delete and re invite')
else:
# Member is enabled and already being monitored
print('Account {account} Error: EmailVerificationFailed'.format(account=account))
Contributor guide
Assessment
This issue has not been assessed yet.