How to get size object in the S3 bucket from aws cli

aws s3 ls --summarize --human-readable --recursive s3://bucket_name/go/to/path | grep 'Total'

Change bucket_name and go/to/path to yours

Leave a Reply

Your email address will not be published. Required fields are marked *