User Tools

Site Tools


aws:list_accounts_in_org

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
aws:list_accounts_in_org [23/06/2025 16:12] andrewaws:list_accounts_in_org [23/06/2025 16:14] (current) andrew
Line 1: Line 1:
- 
 list_accounts_in_organisations.sh list_accounts_in_organisations.sh
  
Line 12: Line 11:
  
 aws organizations list-accounts --query 'Accounts[*].[Id]' --output text aws organizations list-accounts --query 'Accounts[*].[Id]' --output text
 +
 +# Using jq to parse the JSON
 +aws organizations list-accounts | jq -r '.Accounts.[].Id'
  
 </code> </code>
  
aws/list_accounts_in_org.txt · Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki