Closed vaspoz closed 1 year ago
Hey @vaspoz!
Thank you for bring this to our attention! I have cut a feature request in our backlog to address this item.
As a workaround you can remove this account from AFT using the steps and this will prevent it from being returned when identifying targets.: https://docs.aws.amazon.com/controltower/latest/userguide/aft-remove-account.html
In addition, you can also exclude that account when passing the input to the aft-invoke-customizations AWS Step Function. Please see, https://docs.aws.amazon.com/controltower/latest/userguide/aft-account-customization-options.html#aft-re-invoke-customizations
ok, thanks, i'll check the workarounds
AFT Version: 1.9.2
Terraform Version & Provider Versions
Bug Description
To Reproduce Steps to reproduce the behavior:
Expected behavior SUSPENDED accounts should not be taken into the process.
Additional context As a part of the function get_all_aft_account_ads (in utils), the process scans all items from aft-request-metadata table, where some items have status Suspended:![image](https://user-images.githubusercontent.com/4658186/230600263-be2eb8c6-221a-4fdd-a626-761d9b6f230f.png)
sources/aft-lambda-layer/aft_common/aft_utils.py