Skip to main content

accounts

Retrieves a list of accounts in a region

Overview

Nameaccounts
TypeResource
Descriptionaccounts
Idawscc.organizations.accounts

Fields

NameDatatypeDescription
account_idstringIf the account was created successfully, the unique identifier (ID) of the new account.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
account_id
FROM awscc.organizations.accounts
WHERE region = 'us-east-1'

Permissions

To operate on the accounts resource, the following permissions are required:

Create

organizations:CreateAccount,
organizations:DescribeCreateAccountStatus,
organizations:MoveAccount,
organizations:ListParents,
organizations:TagResource,
organizations:DescribeAccount,
organizations:ListTagsForResource

List

organizations:ListAccounts