I'm trying to provison a new account with AFT. I wasn't getting any notification about the account, so i did some digging and found the lambda aft_invoke is failing due to describeaccount.. but i'm unsure what value it's trying to use that would be causing this error. I thought it was suppose to be accountID?
{
"time_stamp": "2023-06-27 16:49:45,927",
"module": "aft_invoke_aft_account_provisioning_framework",
"log_level": "ERROR",
"log_message": {
"FILE": "aft_invoke_aft_account_provisioning_framework.py",
"METHOD": "lambda_handler",
"EXCEPTION": "An error occurred (InvalidInputException) when calling the DescribeAccount operation: You provided a string that exceeds that maximum length."
}
}
Traceback (most recent call last):
File "/var/task/aft_invoke_aft_account_provisioning_framework.py", line 65, in lambda_handler
account_email = orgs_agent.get_account_email_from_id(account_id=account_id)
File "/opt/python/lib/python3.9/site-packages/aft_common/organizations.py", line 270, in get_account_email_from_id
response: DescribeAccountResponseTypeDef = self.orgs_client.describe_account(
File "/opt/python/lib/python3.9/site-packages/botocore/client.py", line 530, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/opt/python/lib/python3.9/site-packages/botocore/client.py", line 960, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidInputException: An error occurred (InvalidInputException) when calling the DescribeAccount operation: You provided a string that exceeds that maximum length.