by aliasxneo · 3y ago · 0 comments
It gave the correct answer first, and then added a bizarre "additional" answer:
Another option is to use the aws organizations describe-account command with the --account-id parameter set to your account ID. This command returns a JSON object with information about your account, including the account ID. Here's an example command:
aws organizations describe-account --account-id 123456789012