[英]AWS boto3 billing information
I'm looking for a way to extract billing information using boto3.我正在寻找一种使用 boto3 提取计费信息的方法。 I've seen solutions using cost explorer but it's not a choice in my case.
我已经看到使用成本浏览器的解决方案,但在我的情况下这不是一个选择。 The information I want to extract is on Billing Dashboard > Bills.
我要提取的信息在 Billing Dashboard > Bills 上。 Is there a service on boto3 that facilitates this task?
boto3 上是否有有助于这项任务的服务?
I found a solution, using boto3.我找到了一个解决方案,使用 boto3。 Using the CloudWatch client we can extract Billing metrics for any service we want.
使用 CloudWatch 客户端,我们可以为我们想要的任何服务提取计费指标。
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cloudwatch.html#CloudWatch.Metric.get_statistics https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cloudwatch.html#CloudWatch.Metric.get_statistics
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.