Last active
March 16, 2019 16:17
-
-
Save cupracer/eb0d490f6a7ac332baf706e1f55b2a96 to your computer and use it in GitHub Desktop.
Amazon S3 CLI: get bucket stats
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
aws s3api list-objects --bucket <bucket-name> --output json --query "[sum(Contents[].Size), length(Contents[])]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
replace
<bucket-name>
with bucket name