如何使用PHP API知道我们在AWS中的账单信息? [英] how to know our billing information in aws using PHP API?

查看:46
本文介绍了如何使用PHP API知道我们在AWS中的账单信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们是否可以通过php API知道亚马逊网络服务帐户的账单信息?如果是,请提供解决方案...

can we know amazon web services account billing information through php API ? If yes please provide the solution...

谢谢

推荐答案

您可以使用如果您使用的是综合帐单帐户,则只需使用该帐户的凭据即可.它将所有帐单信息汇总到合并帐单帐户.

If you're using a consolidated billing account you'll only need to use the credentials for this account. it will aggregate all the billing information to the consolidated billing account.

通常,您需要涵盖以下几项:

In general you need to cover several items:

  1. 身份验证-您需要设置凭据才能连接到AWS.查看文档
  2. 在计费控制台中启用DBR或CUR报告.这会将您的每月帐单信息导出到S3.查看文档
  3. 准备好使用SDK来下载报告并将其导入DB,ES时,无论您要处理什么大型excel文件,都可以使用.检查文档

祝你好运!

编辑

https://docs.aws.amazon.com/aws-sdk-php/v3/api/namespace-Aws.CostExplorer.html

AWS发布了Cost Explorer API以获取账单信息.您可以使用文档进行设置,这非常简单明了.

AWS released Cost Explorer API to get billing information. You can use the documentation to set it up, it's quite straightforward and simple.

这篇关于如何使用PHP API知道我们在AWS中的账单信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆