use aws cli to get size of s3 code example Example: aws s3 get size in gb aws s3 ls s3://mybucket --recursive --human-readable --summarize