查找 Amazon EBS 优化的 Amazon EC2 实例类型
您可以使用 AWS CLI 查看当前区域中支持 EBS 优化的实例类型。
要查找默认的 Amazon EBS 优化实例类型
使用以下 describe-instance-types 命令。如果在 Windows 命令提示符下运行此命令,则请将 \ 行继续符替换为 ^ 字符。
aws ec2 describe-instance-types \ --query 'InstanceTypes[].{InstanceType:InstanceType,"MaxBandwidth(Mb/s)":EbsInfo.EbsOptimizedInfo.MaximumBandwidthInMbps,MaxIOPS:EbsInfo.EbsOptimizedInfo.MaximumIops,"MaxThroughput(MB/s)":EbsInfo.EbsOptimizedInfo.MaximumThroughputInMBps}' \ --filters Name=ebs-info.ebs-optimized-support,Values=default --output=table
eu-west-1
的示例输出:
-------------------------------------------------------------------------------
| DescribeInstanceTypes |
+-------------------+---------------------+-----------+-----------------------+
| InstanceType | MaxBandwidth(Mb/s) | MaxIOPS | MaxThroughput(MB/s) |
+-------------------+---------------------+-----------+-----------------------+
| m5dn.8xlarge | 6800 | 30000 | 850.0 |
| m6gd.xlarge | 4750 | 20000 | 593.75 |
| c4.4xlarge | 2000 | 16000 | 250.0 |
| r4.16xlarge | 14000 | 75000 | 1750.0 |
| m5ad.large | 2880 | 16000 | 360.0 |
...
要查找可选支持 Amazon EBS 优化的实例类型
使用以下 describe-instance-types 命令。
aws ec2 describe-instance-types \ --query 'InstanceTypes[].{InstanceType:InstanceType,"MaxBandwidth(Mb/s)":EbsInfo.EbsOptimizedInfo.MaximumBandwidthInMbps,MaxIOPS:EbsInfo.EbsOptimizedInfo.MaximumIops,"MaxThroughput(MB/s)":EbsInfo.EbsOptimizedInfo.MaximumThroughputInMBps}' \ --filters Name=ebs-info.ebs-optimized-support,Values=supported --output=table
eu-west-1
的示例输出:
--------------------------------------------------------------------------
| DescribeInstanceTypes |
+--------------+----------------------+----------+-----------------------+
| InstanceType | MaxBandwidth(Mb/s) | MaxIOPS | MaxThroughput(MB/s) |
+--------------+----------------------+----------+-----------------------+
| i2.2xlarge | 1000 | 8000 | 125.0 |
| m2.4xlarge | 1000 | 8000 | 125.0 |
| m2.2xlarge | 500 | 4000 | 62.5 |
| c1.xlarge | 1000 | 8000 | 125.0 |
| i2.xlarge | 500 | 4000 | 62.5 |
| m3.xlarge | 500 | 4000 | 62.5 |
| m1.xlarge | 1000 | 8000 | 125.0 |
| r3.4xlarge | 2000 | 16000 | 250.0 |
| r3.2xlarge | 1000 | 8000 | 125.0 |
| c3.xlarge | 500 | 4000 | 62.5 |
| m3.2xlarge | 1000 | 8000 | 125.0 |
| r3.xlarge | 500 | 4000 | 62.5 |
| i2.4xlarge | 2000 | 16000 | 250.0 |
| c3.4xlarge | 2000 | 16000 | 250.0 |
| c3.2xlarge | 1000 | 8000 | 125.0 |
| m1.large | 500 | 4000 | 62.5 |
+--------------+----------------------+----------+-----------------------+