开发者

s3 bucket size for subset bucket names

开发者 https://www.devze.com 2022-12-07 22:47 出处:网络
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

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

精彩评论

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