エラーの実例とコマンドラインからの確認方法
InstanceLimitExceededエラーの確認
$ aws service-quotas get-service-quota \
--service-code ec2 \
--quota-code L-1216C47A
上記コマンドで、現在のEC2インスタンス制限数を確認できます。
AWS CLIでのエラーメッセージ例
$ aws ec2 run-instances --image-id ami-12345678 --instance-type t2.micro --count 10
An error occurred (InstanceLimitExceeded) when calling the RunInstances operation: You have requested more instances (10) than your current instance limit of 5 allows for the specified instance type. Please visit http://aws.amazon.com/contact-us/ec2-request to request an adjustment to this limit.
クォータ引き上げリクエスト方法
$ aws service-quotas request-service-quota-increase \
--service-code ec2 \
--quota-code L-1216C47A \
--desired-value 10