Added t2 instance types

New t2 instance types require HVM amis, bailout assumption of pvm
causes failures when using t2 instance types.

Author: Basit Mustafa <basitmustafa@computes-things-for-basit.local>

Closes #1446 from 24601/master and squashes the following commits:

01fe128 [Basit Mustafa] Makin' it pretty
392a95e [Basit Mustafa] Added t2 instance types
This commit is contained in:
Basit Mustafa 2014-07-18 12:23:47 -07:00 committed by Patrick Wendell
parent 30b8d369d4
commit 7f87ab9813

View file

@ -240,7 +240,10 @@ def get_spark_ami(opts):
"r3.xlarge": "hvm", "r3.xlarge": "hvm",
"r3.2xlarge": "hvm", "r3.2xlarge": "hvm",
"r3.4xlarge": "hvm", "r3.4xlarge": "hvm",
"r3.8xlarge": "hvm" "r3.8xlarge": "hvm",
"t2.micro": "hvm",
"t2.small": "hvm",
"t2.medium": "hvm"
} }
if opts.instance_type in instance_types: if opts.instance_type in instance_types:
instance_type = instance_types[opts.instance_type] instance_type = instance_types[opts.instance_type]