현상: eks cluster에 p4d.24xlarge 인스턴스가 프로비저닝이 안됨
원인: vpc가 설치된 Availability Zone이 해당 인스턴스를 지원 안함
에러
Could not launch On-Demand Instances. Unsupported - Your requested instance type (p4d.24xlarge) is not supported in your requested Availability Zone (ap-northeast-2c). Please retry your request by not specifying an Availability Zone or choosing ap-northeast-2d. Launching EC2 instance failed.
해결
아래 명령어로 해당 인스턴스가 가능한 az를 찾고, vpc의 availability_zone에 추가해준다.
aws ec2 describe-instance-type-offerings --location-type availability-zone --filters Name=instance-type,Values=p4d.24xlarge --region ap-northeast-2 --output table