Created
December 9, 2015 06:38
-
-
Save drohr/76d99a80b919285a3d14 to your computer and use it in GitHub Desktop.
calculate bucket size
This file contains hidden or 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/sh | |
| BUCKET=$1 | |
| aws cloudwatch get-metric-statistics --namespace AWS/S3 --start-time 2015-12-07T10:00:00 --end-time 2015-12-08T01:00:00 --period 86400 --statistics Average --region eu-west-1 --metric-name BucketSizeBytes --dimensions Name=BucketName,Value=$BUCKET Name=StorageType,Value=StandardStorage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment