aws get size of s3 bucket code example
Example 1: aws s3 get size in gb
aws s3 ls s3://mybucket --recursive --human-readable --summarize
Example 2: aws s3 get file size
aws s3 ls --summarize --human-readable --recursive s3://bucket-name/directory