User Tools

Site Tools


aws:orgs

Differences

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

Link to this comparison view

Next revision
Previous revision
aws:orgs [10/12/2024 09:55] – created andrewaws:orgs [25/09/2025 14:51] (current) – removed andrew
Line 1: Line 1:
-====== Organisations ====== 
  
- 
-===== Get a list of OU's in an organisation ===== 
- 
- 
-<code bash> 
-#!/bin/bash 
-# Get the root of an Org and find the subordinate OUs in it. 
-  
-ROOT_ID=$(aws organizations list-roots | jq -r .Roots.[0].Id) 
-printf "Root ID:- ${ROOT_ID}\n" 
-  
-OUS=$(aws organizations list-organizational-units-for-parent --parent-id "${ROOT_ID}" | jq -c .OrganizationalUnits.[].Id) 
-printf "OUs:- ${OUS}\n\n" 
-</code> 
aws/orgs.1733824500.txt.gz · Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki