How to get quotas of AWS EC2 via boto3?
<p>I'm working on boto3 - SDK python for AWS.</p>

<p>How can I get AWS Service Limits via boto3 library like bellow:</p>

<p><a href="http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html" rel="nofollow">http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html</a></p>

<p>Some of those limits can be queried through <a href="http://boto3.readthedocs.io/en/latest/reference/services/ec2.html?highlight=describeaccountattributes#EC2.Client.describe_account_attributes" rel="nofollow">EC2.Client.describe_account_attributes()</a></p>

<blockquote>
  <p><code>describe_account_attributes(**kwargs)</code></p>
  
  <p>Describes attributes of your
  AWS account. The following are the supported account attributes:</p>
  
  <p>...</p>
  
  <ul>
  <li><p><code>max-instances</code> : The maximum number of On-Demand instances that you can
  run.</p></li>
  <li><p><code>vpc-max-security-groups-per-interface</code> : The maximum number of
  security groups that you can assign to a network interface.</p></li>
  <li><p><code>max-elastic-ips</code> : The maximum number of Elastic IP addresses that you
  can allocate for use with EC2-Classic.</p></li>
  <li><p><code>vpc-max-elastic-ips</code> : The
  maximum number of Elastic IP addresses that you can allocate for use
  with EC2-VPC.</p></li>
  </ul>
</blockquote>

python amazon-web-services boto3