Skip to content

Instantly share code, notes, and snippets.

@Trogious
Created April 29, 2025 23:54
Show Gist options
  • Save Trogious/9d4b98e5e79333f2d1dc517bd19731b1 to your computer and use it in GitHub Desktop.
Save Trogious/9d4b98e5e79333f2d1dc517bd19731b1 to your computer and use it in GitHub Desktop.
Get AWS S3 bucket size in bytes
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