Last active
June 17, 2020 13:31
-
-
Save z0ph/6c040079b7d7020b1ff6b627b4c1e408 to your computer and use it in GitHub Desktop.
Retrieve S3 Buckets Encryption status
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
for ITEM in $(aws s3api list-buckets --output json |grep "Name" | cut -d":" -f2 | cut -d'"' -f2); do echo $ITEM " --- " $(aws s3api get-bucket-encryption --bucket $ITEM 2>&1); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment