code: def get_by_aws_account_number(account_number, bucket, region='us-west-2', json_path='accounts.json'):
      
      for account in get_all_accounts(bucket, region, json_path)['accounts']:
          if 'aws' in account['type']:
              if account['metadata']['account_number'] == account_number:
                  return account
docs: Given an account number (or ID), attempts to retrieve associated account info.