aws s3 get size 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
aws s3 ls s3://mybucket --recursive --human-readable --summarize
aws s3 ls --summarize --human-readable --recursive s3://bucket-name/directory