List accounts stacks
List stacks from accounts.

Usage

1
tkm org accounts list-stacks [ou-path...] \
2
--config-set-type <config-set-type> \
3
[--account <account_id>]... \
4
[--concurrent-accounts <number>] \
5
[--config-set <config-set>] \
6
[--command-path <command-path>]
Copied!

Positional arguments

    ou-path...
      You can pass one or more organizational unit paths to list stacks only from the accounts that belong to the organizational units located under the given paths in the organization hierarchy.

Options

In addition to the common options, this command has the following options.
    --config-set-type <config-set-type>
      List stacks that belong to a config sets of this type.
      The provided config set type must be either standard or bootstrap.
    --account <account-id> | -a <account-id>
      Choose accounts to from where to list stacks. You can use this option multiple times to specify more accounts.
    --concurrent-accounts <number>
      Number of accounts to process concurrently.
    --config-set <config-set>
      List only stacks that belong to this config set.
      Optional.
    --command-path <command-path>
      List only stacks under this command path in the config set specified with the --config-set option.
      Optional.
      To use this option, also the --config-set option must be given.

IAM permissions

These are the minimum IAM permissions required to run this command.
1
Statement:
2
3
# IAM permissions required for the organization master account.
4
- Action:
5
- organizations:DescribeOrganization
6
- organizations:DescribePolicy
7
- organizations:ListAWSServiceAccessForOrganization
8
- organizations:ListAccounts
9
- organizations:ListAccountsForParent
10
- organizations:ListOrganizationalUnitsForParent
11
- organizations:ListPolicies
12
- organizations:ListRoots
13
- organizations:ListTargetsForPolicy
14
Effect: Allow
15
Resource: '*'
16
Sid: organizations
17
- Action:
18
- sts:AssumeRole
19
Effect: Allow
20
Resource: '*'
21
Sid: sts
22
23
# IAM permissions required in each organization account.
24
- Sid: IAM
25
Effect: Allow
26
Action:
27
- sts:AssumeRole
28
- cloudformation:ListStacks
29
Resource: "*"
Copied!

Examples

List stacks from every account.
1
tkm org accounts list-stacks --config-set-type standard
Copied!
List stacks from accounts that belong to the Root/Workload organizational unit.
1
tkm org accounts list-stacks ROOT/Workload --config-set-type standard
Copied!
List all stacks from accounts 123456789012 and 210987654321
1
tkm org accounts list-stacks \
2
-a 123456789012 210987654321 \
3
--config-set-type standard
Copied!
List stacks from every account that belong to bootstrap config sets.
1
tkm org accounts list-stacks --config-set-type bootstrap
Copied!
Last modified 1mo ago