UP | HOME

aws ec2 run-instances で Non-Windows instances のエラー

目次

1 エラー

$ aws ec2 run-instances --image-id ami-5c9a933b --count 1 --instance-type t1.micro --key-name MyKeyPair --security-group-ids sg-xxxxxxxx --subnet-id subnet-xxxxxxxx
An error occurred (InvalidParameterCombination) when calling the RunInstances operation: Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type.

2 理由

以下の AMI では t1.micro が使用できない。

  • RHEL-7.3HVM-20170613-x8664-4-Hourly2-GP2 - ami-5c9a933b
  • Provided by Red Hat, Inc.
  • Root device type: ebs
  • Virtualization type: hvm

3 対処

t2.micro にする。

$ aws ec2 run-instances --image-id ami-5c9a933b --count 1 --instance-type t2.micro --key-name MyKeyPair --security-group-ids sg-xxxxxxxx --subnet-id subnet-xxxxxxxx

著者: clothoid

Created: 2021-10-09 Sat 11:11

Validate