Last active
August 7, 2024 10:28
-
-
Save huevos-y-bacon/cf6ee97ede533041e2fd7b59efb545df to your computer and use it in GitHub Desktop.
AWS Config - Check if AWS Config is enabled in all regions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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