- outline
Sometimes, we can NOT create EC2 instance specific availability zone for some reasons. You can check it using below script, previously.
- example
region : ap-northeast-2
instance type : c5-large
- script
aws ec2 describe-instance-type-offerings --location-type availability-zone --filters Name=instance-type,Values=c5.xlarge --region ap-northeast-2 --output table
- result
$ aws ec2 describe-instance-type-offerings --location-type availability-zone --filters Name=instance-type,Values=c5.xlarge --region ap-northeast-2 --output table
------------------------------------------------------------
| DescribeInstanceTypeOfferings |
+----------------------------------------------------------+
|| InstanceTypeOfferings ||
|+--------------+-------------------+---------------------+|
|| InstanceType | Location | LocationType ||
|+--------------+-------------------+---------------------+|
|| c5.xlarge | ap-northeast-2d | availability-zone ||
|| c5.xlarge | ap-northeast-2a | availability-zone ||
|| c5.xlarge | ap-northeast-2c | availability-zone ||
|| c5.xlarge | ap-northeast-2b | availability-zone ||
|+--------------+-------------------+---------------------+|
- reference
https://aws.amazon.com/ko/premiumsupport/knowledge-center/ec2-instance-type-not-supported-az-error/