获取AWS中使用的资源数量

时间:2015-08-20 06:06:08

标签: amazon-web-services amazon-ec2 boto aws-opsworks boto3

AWS设置资源数量限制。我需要在脚本中使用boto3python计算帐户的已用资源数量

有没有办法做到这一点?

我是boto3python

的初学者

例如: EBS限制,其中包含多个资源及其限制。

2 个答案:

答案 0 :(得分:3)

有一个DescribeAccountAttributes调用来检索某些Amazon EC2限制。

请参阅:DescribeAccountAttributes documentation

还有调用来发现正在使用的当前资源数量(例如,返回实例列表,卷,快照)。

答案 1 :(得分:0)

AWS Trusted AdvisorBusiness and Enterprise support上的客户可用)提供limits和当前使用情况的列表,除以服务和地区:

AWS Trusted Advisor limits