How to get the size of an S3 bucket (sum of all objects) using the AWS CLI

aws s3 ls s3://myBucket --recursive --human-readable --summarize

# Or if you want to get the size of a specific folder in the bucket
aws s3 ls s3://myBucket/some/folder --recursive --human-readable --summarize
4 lines of code, 210 characters

Similar AWS code snippets using bash

Finally, a good search for AWS Console

Was that in us-east-1? Or us-west-2? No need to remember. Just type the name of the resource and CloudTempo will find it.