User Tools

Site Tools


aws:list_accounts_in_org

This is an old revision of the document!


list_accounts_in_organisations.sh

#!/bin/bash
 
# Lists just the accounts in an organiation,
# suitable for redirecting to a file to iterate over
# for processing something in all accounts.
 
# This gives a text output, the default is json, --output table is also valid.
 
disable_check]$ aws organizations list-accounts --query 'Accounts[*].[Id]' --output text
aws/list_accounts_in_org.1750678487.txt.gz · Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki