Run ncdu
over a listing of an S3 bucket.
- With a working AWS CLI setup, run
aws s3 ls s3://example-bucket --recursive | tee bucket-listing.txt
to dump the bucket's contents. - Run this script and save its output to another file
ruby s3-ls-to-ncdu.rb > bucket-listing.ncdu.json
. - Run
ncdu -f bucket-listing.ncdu.json
to see what's going on in your bucket.
I've just made this to work for my one interesting bucket. Feel free to add more features or report bugs you may have.