通过控制台获取AWS实例限制 [英] Getting AWS Instance limits via console

查看:81
本文介绍了通过控制台获取AWS实例限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在aws ec2服务中任何区域的限制页面上,我可以创建的实例受到限制:

On the limit page at any region in aws ec2 service there are limits for instances i can create:

aws gamelift describe-ec2-instance-limits --query 'EC2InstanceLimits[].{EC2InstanceType:EC2InstanceType,InstanceLimit:InstanceLimit}' --region us-east-1 --output text

上面的命令就在我需要的东西附近.输出如下:

Above command is near the thing i need. Output looking like:

r3.8xlarge  2
m3.xlarge   15
m4.10xlarge 1
c4.large    20
r3.xlarge   15
r3.large    20
m4.xlarge   15
m4.2xlarge  10
t2.small    20
c3.4xlarge  5
t2.large    20
c4.4xlarge  5
c3.xlarge   15
c4.xlarge   15
m3.2xlarge  10
c4.2xlarge  10
r3.2xlarge  10
m3.medium   20
t2.micro    20
c3.2xlarge  10
c3.large    20
m3.large    20
m4.large    20
c4.8xlarge  2
m4.4xlarge  5
c3.8xlarge  2
t2.medium   20
r3.4xlarge  5

我需要的是获取可用于区域创建的所有实例类型的列表.在此页面上: https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#Limits :,您会看到一个带有实例限制"标题的表,其中包含名称"和当前限制"列.我需要获取实例类型及其当前限制的完整列表,以便我可以使用此信息创建实例.

What i need is to get a list of all instance types that are available for region to create. At this page: https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#Limits:, you can see a table with Instance Limits header, that has Name and Current Limit columns. I need to get a full list of Instance Type and its Current Limit, so i can create instances using this information.

赞:

r3.8xlarge 5
c3.4xlarge 10 
c4.8xlarge 0

etc(所有实例),这意味着我现在可以在该区域中创建5个r3.8xlarge实例,10个c3.4xlarge实例和0个c4.8xlarge实例.

etc(all instances), meaning i can create right now in this region 5 instances of r3.8xlarge, 10 instances of c3.4xlarge and 0 of c4.8xlarge.

推荐答案

aws gamelift describe-ec2-instance-limits 命令非常有用,因为它显示:

The aws gamelift describe-ec2-instance-limits command is very useful because it displays:

  • 每个AWS账户允许的最大实例数(服务限制)
  • AWS账户的当前使用水平

但是,该API调用仅在提供Amazon GameLift服务的区域中可用.

However, that API call is only available in regions that offer the Amazon GameLift service.

即使信息显示在Amazon EC2管理控制台中,也没有可用的Amazon EC2 API调用来获取相同的信息.

Even though the information is displayed in the Amazon EC2 Management Console, there is no Amazon EC2 API call available to obtain the same information.

更新:现在可以通过

Update: Limits are now available via the Service Quotas interface.

这篇关于通过控制台获取AWS实例限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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