Skip to content

Commit 41e8f69

Browse files
committed
Merge pull request #1841 from ddollar/ec2-hvm
root DeviceName is conditional on paravirtualization type
2 parents fd6bd50 + 79dd499 commit 41e8f69

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

contrib/ec2/deis.template.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
9393
"ap-northeast-1" : { "PV" : "ami-17210d16", "HVM" : "ami-19210d18" },
9494
"sa-east-1" : { "PV" : "ami-efba10f2", "HVM" : "ami-e9ba10f4" }
9595
},
96+
"RootDevices" : {
97+
"HVM" : { "Name": "/dev/xvda" },
98+
"PV" : { "Name": "/dev/sda" }
99+
},
96100
"SubnetConfig" : {
97101
"VPC" : { "CIDR" : "10.21.0.0/16" },
98102
"Subnet1" : { "CIDR" : "10.21.1.0/24" },
@@ -221,7 +225,7 @@
221225
"SecurityGroups": [ { "Fn::GetAtt": ["VPCSecurityGroup", "GroupId"] } ],
222226
"BlockDeviceMappings" : [
223227
{
224-
"DeviceName" : "/dev/sda",
228+
"DeviceName" : { "Fn::FindInMap": [ "RootDevices", { "Ref": "EC2VirtualizationType" }, "Name" ] },
225229
"Ebs" : { "VolumeSize" : "100" }
226230
}
227231
]

0 commit comments

Comments
 (0)