Skip to content

Instantly share code, notes, and snippets.

@cupracer
Last active March 16, 2019 16:17
Show Gist options
  • Save cupracer/eb0d490f6a7ac332baf706e1f55b2a96 to your computer and use it in GitHub Desktop.
Save cupracer/eb0d490f6a7ac332baf706e1f55b2a96 to your computer and use it in GitHub Desktop.
Amazon S3 CLI: get bucket stats
aws s3api list-objects --bucket <bucket-name> --output json --query "[sum(Contents[].Size), length(Contents[])]"
@cupracer
Copy link
Author

replace <bucket-name> with bucket name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment