开发者

s3 bucket size for subset bucket names

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜