There must be an easy way to get the file size (key size) without pulling over a whole file. I can see it in the Properties of the AWS S3 browser. And I think I can get it
in boto3:
s3.head_object also performs a HEAD request to retrieve the meta data about the object:
s3.head_object
s3 = boto3.client('s3') response = s3.head_object(Bucket='bucketname', Key='keyname') size = response['ContentLength']