Skip to content

Instantly share code, notes, and snippets.

@huevos-y-bacon
Last active March 29, 2022 16:22
Show Gist options
  • Save huevos-y-bacon/cf6ee97ede533041e2fd7b59efb545df to your computer and use it in GitHub Desktop.
Save huevos-y-bacon/cf6ee97ede533041e2fd7b59efb545df to your computer and use it in GitHub Desktop.
Check if AWS Config is enabled in all regions
#/bin/bash
# Check if AWS Config is enabled in all regions
for r in $(aws ec2 describe-regions --query 'Regions[].RegionName' --out text); do
aws configservice describe-configuration-recorder-status --region $r --out yaml --query \
'ConfigurationRecordersStatus[].{name:name,recording:recording,lastStatus:lastStatus}';
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment