Skip to content

aft_invoke_aft_account_provisioning_framework failing

0

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.

asked 3 years ago679 views

2 Answers
0

Hi There

Are you running an older version of AFT?

Please take a look at this issue https://github.com/aws-ia/terraform-aws-control_tower_account_factory/issues/287

The recommendation is to update to the latest version and try again, it seems there may have been some changes regarding Organizations logic.

AWS
EXPERT

answered 3 years ago

0

You're likely to encounter the limits from the maximum of AWS Organizations accounts in an organization. Request an increase will help to solve your problem. To get more information, check The Quotas and service limits for AWS Organizations document.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.