cloudmapper icon indicating copy to clipboard operation
cloudmapper copied to clipboard

organizations.describe_organization({}): An error occurred

Open jmerinoh opened this issue 4 years ago • 3 comments

python cloudmapper.py collect --config config.json.demo --account demo an error is sent:

organizations.describe_organization({}): An error occurred (AWSOrganizationsNotInUseException) when calling the DescribeOrganization operation: Your account is not a member of an organization. organizations.list_accounts({}): An error occurred (AWSOrganizationsNotInUseException) when calling the ListAccounts operation: Your account is not a member of an organization.

on a mac, (venv)

jmerinoh avatar Jun 30 '20 03:06 jmerinoh

Affected me too. Is there a workaround?

On Docker Container. https://github.com/duo-labs/cloudmapper#using-a-docker-container

falconws avatar Jul 08 '20 05:07 falconws

  • Option 1 (easiest, short-term fix): Comment out these lines: https://github.com/duo-labs/cloudmapper/blob/main/collect_commands.yaml#L386
  • Option 2 (better, long-term fix): Add another exception to this list: https://github.com/duo-labs/cloudmapper/blob/e611d2a05b462c33abb570bed2b1aae491b49fe0/commands/collect.py#L114
  • Option 3 (best for your environment): Move your account to an Organization :P

Happy to accept a PR for Option 2.

0xdabbad00 avatar Jul 08 '20 18:07 0xdabbad00

This issue has been fixed! Let's close it :)

w0rmr1d3r avatar Mar 04 '21 08:03 w0rmr1d3r