This file contains 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
#!/bin/bash | |
# Justin Miller 12/01/17 | |
# Script to calculate the human readable size of S3 buckets | |
# The script uses cloudwatch metrics. These may need time to update if you've added data to a bucket within 24hrs. | |
# It happily DOES NOT need to travese potentially millions of files to calculate your S3 bucket sizes. | |
# | |
# Usage: | |
# ./ls-s3-sizes.sh | |
# | |
# TODO: Could be further parameterised depending on usage requirements. |