Enumerating all your AWS accounts
Substrate will maintain
substrate.accounts.txtin your Substrate repository as you create new admin and service accounts, providing a reference that's close at hand and even committed to version control (in case AWS is well and truly broken). The
substrate accountscommand updates that file and then prints it out. But it accepts a
substrate accounts -format jsonmakes it easy to program against your list of accounts. It's equivalent to the
organizations:ListAccountsAPI with each account decorated with its tags, making domain, environment, and quality accessible, too.
substrate accounts -format shellprints a shell program that will run the appropriate Substrate command against every account in your organization. This is mighty convenient during Substrate upgrades or in CI/CD systems, especially when combined with the environment variable