특정 리전에 특정 인스턴스 가용한 영역 확인

2022. 8. 22. 18:54AWS/Amazon EC2

728x90
SMALL

- 개요

EC2 인스턴스가 특정 가용 영역에서 사용이 불가능하거나 여유가 없는 경우가 있다. 아래는 특정 인스턴스가 특정 리전의 특정 가용역에서 사용가능한지 확인해주는 스크립트이다.

 

 

- 예제

region : ap-northeast-2
instance type : c5-large

 

 

- 스크립트

aws ec2 describe-instance-type-offerings --location-type availability-zone  --filters Name=instance-type,Values=c5.xlarge --region ap-northeast-2 --output table

 

 

- 결과

$ 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  ||
|+--------------+-------------------+---------------------+|

 

 

- 참고

https://aws.amazon.com/ko/premiumsupport/knowledge-center/ec2-instance-type-not-supported-az-error/

 

728x90
LIST

'AWS > Amazon EC2' 카테고리의 다른 글

AWS EBS 확장하는 법  (0) 2022.11.07
EC2 추가 disk mount  (0) 2022.10.11
bastion host를 이용한 SSH tunneling  (0) 2022.09.21
CentOS on Amazon EC2에서 chrony_not_working 에러  (0) 2020.10.30
AWS EBS volume 크기 조정  (0) 2020.10.28