我们如何知道实例类型在哪些区域和可用区域可用?我正在寻找以检查 c5.xlarge 实例类型。
我已经有一个查询,但它没有给我正确的输出。
aws --profile qa ec2 describe-reserved-instances-offerings --filters Name=scope,Values=availability-zone --no-include-marketplace --instance-type 'c5.xlarge' | jq -r '.ReservedInstancesOfferings[].AvailabilityZone' | sort | uniq
还有其他方法吗?
答案1
我通过按区域运行以下命令获得了列表。
- C:\Users\sachinsin>aws --profile qa ec2 describe-reserved-instances-offerings --filters “名称=范围,值=可用区域” --no-include-marketplace --instance-type c5.xlarge --region ap-southeast-2 >> ap-southeast-2.txt
- C:\Users\sachinsin>aws --profile qa ec2 describe-reserved-instances-offerings --filters “名称=范围,值=可用区域” --no-include-marketplace --instance-type c5.xlarge --region us-west-2 >> us-west-2.txt
- C:\Users\sachinsin>aws --profile qa ec2 describe-reserved-instances-offerings --filters “名称=范围,值=可用区域” --no-include-marketplace --instance-type c5.xlarge --region eu-west-1 >> eu-west-1.txt