Created
June 12, 2017 20:56
-
-
Save dannenberg/26d4f34001a522e21fae1b01ce42e147 to your computer and use it in GitHub Desktop.
This file contains 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
for bucket in $(aws s3 ls | awk '{print $3}') | |
do | |
bucket_status=$(aws s3api get-bucket-versioning --bucket $bucket) | |
if [[ $bucket_status != "Enabled" ]]; then | |
echo $bucket | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment