s3du

nicolaw 17th June 2019 at 12:04pm
AWS awscli CodeSnippets
function s3du () { aws s3api list-objects --bucket "$1" --output json --query "{bytes: sum(Contents[].Size), objects: length(Contents[])}"; }