To get the total objects count and total size for folder within S3 bucket recursively –
aws s3 ls --summarize --human-readable --recursive s3://content-dev/mywork/dumb | grep 'Total' Total Objects: 1922 Total Size: 297.4 GiB
To get the total objects count and total size for folder within S3 bucket recursively –
aws s3 ls --summarize --human-readable --recursive s3://content-dev/mywork/dumb | grep 'Total' Total Objects: 1922 Total Size: 297.4 GiB