Bug Description
Account Factory product requires the ManagedOrganizationalUnit field to be in the format of <ou_name> (<ou_id>) for nested OU's. Customers can now import existing Audit and Logging accounts when deploying Control Tower and in some cases these could be in a nested OU. When importing these into AFT and using the proper nested OU format an error will occur.
To Reproduce
Steps to reproduce the behavior:
Have existing Logging and Audi accounts in a nested OU
Deploy Control Tower and reference the existing Audit and Logging accounts
Import these accounts into AFT using the proper format which is <ou_name> (<ou_id>)
See error
Expected behavior
AFT should recognize this as a "shared" account matching the ou on format <ou_name> (<ou_id>) and not try to vend the account but go directly to the provisioning framework.
Related Logs
"Invalid Request - AccountEmail already exists in Organization: "
Additional context
Setting ManagedOrganizationalUnit to name only allows for the importing of the account to occur
Terraform Version & Prov:
AFT Version: 1.5.0
Terraform Version & Provider Versions Please provide the outputs of
terraform version
andterraform providers
from within your AFT environmentterraform version
terraform providers
Bug Description Account Factory product requires the
ManagedOrganizationalUnit
field to be in the format of<ou_name> (<ou_id>)
for nested OU's. Customers can now import existing Audit and Logging accounts when deploying Control Tower and in some cases these could be in a nested OU. When importing these into AFT and using the proper nested OU format an error will occur.To Reproduce Steps to reproduce the behavior:
<ou_name> (<ou_id>)
Expected behavior AFT should recognize this as a "shared" account matching the ou on format
<ou_name> (<ou_id>)
and not try to vend the account but go directly to the provisioning framework.Related Logs "Invalid Request - AccountEmail already exists in Organization:"
Additional context Setting
ManagedOrganizationalUnit
to name only allows for the importing of the account to occur