Skip to content

Instantly share code, notes, and snippets.

@ryanhanwu
Created January 8, 2019 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanhanwu/affe6a762d81399d77e8d924ff38f8f4 to your computer and use it in GitHub Desktop.
Save ryanhanwu/affe6a762d81399d77e8d924ff38f8f4 to your computer and use it in GitHub Desktop.
AWS List size
aws s3api list-objects --bucket BUCKETNAME --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