code-dumps/aws/dump-scp.sh

2 lines
194 B
Bash
Executable File

aws organizations list-policies --filter SERVICE_CONTROL_POLICY | jq -cr '.Policies[] | .Id' | while read i; do aws organizations describe-policy --policy-id $i --output text | tee $i.txt; done