From 0f8516e0bc1839d1866d444583e97ce4a73e3c98 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Fri, 15 Nov 2013 13:56:11 +0100 Subject: [PATCH] Allow i2 instances to be used (hvm). --- nix/ec2.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/ec2.nix b/nix/ec2.nix index 9c62a6d73..2620936c4 100644 --- a/nix/ec2.nix +++ b/nix/ec2.nix @@ -117,7 +117,10 @@ let cfg.instanceType == "cc1.4xlarge" || cfg.instanceType == "cc2.8xlarge" || cfg.instanceType == "hs1.8xlarge" - || cfg.instanceType == "cr1.8xlarge"; + || cfg.instanceType == "cr1.8xlarge" + || builtins.substring 0 2 cfg.instanceType == "i2" + || builtins.substring 0 2 cfg.instanceType == "c3" + || builtins.substring 0 2 cfg.instanceType == "m3"; # Map "/dev/mapper/xvdX" to "/dev/xvdX". dmToDevice = dev: