code-dumps/aws/dump-scp.sh

2 lines
194 B
Bash
Raw Normal View History

2021-05-05 14:40:42 +08:00
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