can get s3 bucket size with python as below or use cw metrics.
But how to use custom list of s3 buckets from local file as sometimes it takes too long for large buckets or different storage class. not sure sometimes it doesnt show all s3 buckets ?
with open('subsetbucketslist.txt') as f:
allbuckets = f.read().splitlines()
How to use local file of buckets names as input boto3.resource
Reference using cw metrics , looking to use local file buckets subsetStandardStoragebucketslist.txt as input https:/开发者_StackOverflow/www.slsmk.com/getting-the-size-of-an-s3-bucket-using-boto3-for-aws/
精彩评论