-
-
Save gotunandan/69b1cd4f5f88b3796310f3dd83c041a4 to your computer and use it in GitHub Desktop.
Print a list of aws buckets along with their tags
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for bucket in $(aws s3api list-buckets | jq .Buckets[].Name -r); do tags=$(aws s3api get-bucket-tagging --bucket $bucket | jq -c '.[][] | {(.Key): .Value}' | tr '\n' '\t') echo $bucket '|' $tags done