简体   繁体   中英

Is there a way to get total AWS S3 bucket PUT costs using boto3?

I am trying to calculate the costs of a S3 bucket using boto3. For the size, I am using list_objects(bucketname)['contents'].

Is there a way I can get the total PUT costs or total PUT requests for the bucket? Any API's that support this?

Thanks

You should be using cloudwatch metrics for identifying put requests. for details refer cloudwatch for S3

aws cloudwatch list-metrics --namespace "AWS/S3"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM