尋找 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 |
+--------------+----------------------+----------+-----------------------+