使用BOTO3获取AWS账户的限额 [英] Getting the Limit of AWS Accounts using BOTO3

查看:230
本文介绍了使用BOTO3获取AWS账户的限额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在AWS上监视我的基础架构.为此,我正在编写boto3函数以了解我的帐户限制.但是,我无法实现以下目的:

I need to monitor my infrastructure on AWS. For this, I am writing boto3 functions to know the limits of my account. However, I am not able to achieve the following things:

  1. EBS卷的限制(无法找到我可以创建的最大卷数的任何方法)
  2. 安全组总数的限制
  3. 每个安全组的安全规则限制
  4. 弹性IP的最大数量.由于我拥有不同的AWS账户,并且每个账户的限额都有所不同.我需要从每个帐户中动态获取它.

推荐答案

我们可以通过使用信任顾问服务来实现. 您只需要通过对Trust Advisor的直接API调用(例如我的服务限制)来监视结果. https://console.aws.amazon.com/Trustedadvisor/home?#/category/performance?checkId = eW7HH0l7J9

We can achieve this by using trust advisor service. you only need to monitor the result by direct API call for Trust advisor like service limits in my case. https://console.aws.amazon.com/trustedadvisor/home?#/category/performance?checkId=eW7HH0l7J9

这篇关于使用BOTO3获取AWS账户的限额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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