Skip to content

Instantly share code, notes, and snippets.

@z0ph
Last active June 17, 2020 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z0ph/6c040079b7d7020b1ff6b627b4c1e408 to your computer and use it in GitHub Desktop.
Save z0ph/6c040079b7d7020b1ff6b627b4c1e408 to your computer and use it in GitHub Desktop.
Retrieve S3 Buckets Encryption status
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