finding s3 bucket's level 1 prefix sizes while including versions using boto3 and python
问题 I'm an aws python newbie and trying to account for total bucket size shown via metrics tab on UI vs calculating sizes one folder at a time in a give bucket. I tried to fetch it by setting an inventory configuration but it doesn't show what I'm looking for. I have an s3 bucket names my_bucket with versioning enabled. It has 100 Objects and 26 subfolders (will 100000+ objects in each subfolder and atleast two versions for each of the object) WHAT I AM TRYING TO DO: Calculate and display total